<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>perl5004delta - what&#39;s new for perl5.004 - Perldoc Browser</title>
    <link rel="search" href="https://perldoc.perl.org/opensearch.xml" type="application/opensearchdescription+xml" title="Perldoc Browser">
    <link rel="canonical" href="https://perldoc.perl.org/perl5004delta">
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z" crossorigin="anonymous">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.5.0/styles/stackoverflow-light.min.css" integrity="sha512-cG1IdFxqipi3gqLmksLtuk13C+hBa57a6zpWxMeoY3Q9O6ooFxq50DayCdm0QrDgZjMUn23z/0PMZlgft7Yp5Q==" crossorigin="anonymous" />
    <style>
      body {
        background: #f4f4f5;
        color: #020202;
      }
      .navbar-dark {
        background-image: -webkit-linear-gradient(top, #005f85 0, #002e49 100%);
        background-image: -o-linear-gradient(top, #005f85 0, #002e49 100%);
        background-image: linear-gradient(to bottom, #005f85 0, #002e49 100%);
        filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff005f85', endColorstr='#ff002e49', GradientType=0);
        background-repeat: repeat-x;
      }
      .navbar-dark .navbar-nav .nav-link,
      .navbar-dark .navbar-nav .nav-link:focus { color: #fff }
      .navbar-dark .navbar-nav .nav-link:hover { color: #ffef68 }
      #wrapperlicious {
        margin: 0 auto;
        font: 0.9em 'Helvetica Neue', Helvetica, sans-serif;
        font-weight: normal;
        line-height: 1.5em;
        margin: 0;
        padding: 0;
      }
      #wrapperlicious h1 { font-size: 1.5em }
      #wrapperlicious h2 { font-size: 1.3em }
      #wrapperlicious h3 { font-size: 1.1em }
      #wrapperlicious h4 { font-size: 0.9em }
      #wrapperlicious h1, #wrapperlicious h2, #wrapperlicious h3,
      #wrapperlicious h4, #wrapperlicious dt {
        color: #020202;
        margin-top: 1em;
        margin-bottom: 1em;
        position: relative;
        font-weight: bold;
      }
      #wrapperlicious a { color: inherit; text-decoration: underline }
      #wrapperlicious #toc { text-decoration: none }
      #wrapperlicious a:hover { color: #2a2a2a }
      #wrapperlicious a img { border: 0 }
      #wrapperlicious :not(pre) > code {
        color: inherit;
        background-color: rgba(0, 0, 0, 0.04);
        border-radius: 3px;
        font: 0.9em Consolas, Menlo, Monaco, monospace;
        padding: 0.3em;
      }
      #wrapperlicious dd {
        margin: 0;
        margin-left: 2em;
      }
      #wrapperlicious dt {
        color: #2a2a2a;
        font-weight: bold;
        margin-left: 0.9em;
      }
      #wrapperlicious p {
        margin-bottom: 1em;
        margin-top: 1em;
      }
      #wrapperlicious li > p {
        margin-bottom: 0;
        margin-top: 0;
      }
      #wrapperlicious pre {
        border: 1px solid #c1c1c1;
        border-radius: 3px;
        font: 100% Consolas, Menlo, Monaco, monospace;
        margin-bottom: 1em;
        margin-top: 1em;
      }
      #wrapperlicious pre > code {
        display: block;
        background-color: #f6f6f6;
        font: 0.9em Consolas, Menlo, Monaco, monospace;
        line-height: 1.5em;
        text-align: left;
        white-space: pre;
        padding: 1em;
      }
      #wrapperlicious dl, #wrapperlicious ol, #wrapperlicious ul {
        margin-bottom: 1em;
        margin-top: 1em;
      }
      #wrapperlicious ul {
        list-style-type: square;
      }
      #wrapperlicious ul ul {
        margin-bottom: 0px;
        margin-top: 0px;
      }
      #footer {
        font-size: 0.8em;
        padding-top: 0.5em;
        text-align: center;
      }
      #more {
        display: inline;
        font-size: 0.8em;
      }
      #perldocdiv {
        background-color: #fff;
        border: 1px solid #c1c1c1;
        border-bottom-left-radius: 5px;
        border-bottom-right-radius: 5px;
        margin-left: auto;
        margin-right: auto;
        padding: 3em;
        padding-top: 1em;
        max-width: 960px;
      }
      #moduleversion { float: right }
      #wrapperlicious .leading-notice {
        font-style: italic;
        padding-left: 1em;
        margin-top: 1em;
        margin-bottom: 1em;
      }
      #wrapperlicious .permalink {
        display: none;
        left: -0.75em;
        position: absolute;
        padding-right: 0.25em;
        text-decoration: none;
      }
      #wrapperlicious h1:hover .permalink, #wrapperlicious h2:hover .permalink,
      #wrapperlicious h3:hover .permalink, #wrapperlicious h4:hover .permalink,
      #wrapperlicious dt:hover .permalink {
        display: block;
      }
    </style>
    <!-- Global site tag (gtag.js) - Google Analytics -->
    <script async src="https://www.googletagmanager.com/gtag/js?id=G-KVNWBNT5FB"></script>
    <script>
      window.dataLayer = window.dataLayer || [];
      function gtag(){dataLayer.push(arguments);}
      gtag('js', new Date());

      gtag('config', 'G-KVNWBNT5FB');
      gtag('config', 'UA-50555-3');
    </script>
  </head>
  <body>
    <nav class="navbar navbar-expand-md navbar-dark bg-dark justify-content-between">
  <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
    <span class="navbar-toggler-icon"></span>
  </button>
  <a class="navbar-brand" href="https://perldoc.perl.org/">Perldoc Browser</a>
  <div class="collapse navbar-collapse" id="navbarNav">
    <ul class="navbar-nav mr-auto">
      <li class="nav-item dropdown text-nowrap">
        <a class="nav-link dropdown-toggle" href="perl5004delta.html#" id="dropdownlink-stable" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">5.35.0</a>
        <div class="dropdown-menu" aria-labelledby="dropdownlink-stable">
          <a class="dropdown-item" href="https://perldoc.perl.org/perl5004delta">Latest</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.2/perl5004delta">5.38.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.1/perl5004delta">5.38.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.0/perl5004delta">5.38.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.36.3/perl5004delta">5.36.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.36.2/perl5004delta">5.36.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.36.1/perl5004delta">5.36.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.36.0/perl5004delta">5.36.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.34.3/perl5004delta">5.34.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.34.2/perl5004delta">5.34.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.34.1/perl5004delta">5.34.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.34.0/perl5004delta">5.34.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.32.1/perl5004delta">5.32.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.32.0/perl5004delta">5.32.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.30.3/perl5004delta">5.30.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.30.2/perl5004delta">5.30.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.30.1/perl5004delta">5.30.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.30.0/perl5004delta">5.30.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.28.3/perl5004delta">5.28.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.28.2/perl5004delta">5.28.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.28.1/perl5004delta">5.28.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.28.0/perl5004delta">5.28.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.26.3/perl5004delta">5.26.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.26.2/perl5004delta">5.26.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.26.1/perl5004delta">5.26.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.26.0/perl5004delta">5.26.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.4/perl5004delta">5.24.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.3/perl5004delta">5.24.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.2/perl5004delta">5.24.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.1/perl5004delta">5.24.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.0/perl5004delta">5.24.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.4/perl5004delta">5.22.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.3/perl5004delta">5.22.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.2/perl5004delta">5.22.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.1/perl5004delta">5.22.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.0/perl5004delta">5.22.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.20.3/perl5004delta">5.20.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.20.2/perl5004delta">5.20.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.20.1/perl5004delta">5.20.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.20.0/perl5004delta">5.20.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.4/perl5004delta">5.18.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.3/perl5004delta">5.18.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.2/perl5004delta">5.18.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.1/perl5004delta">5.18.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.0/perl5004delta">5.18.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.16.3/perl5004delta">5.16.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.16.2/perl5004delta">5.16.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.16.1/perl5004delta">5.16.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.16.0/perl5004delta">5.16.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.4/perl5004delta">5.14.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.3/perl5004delta">5.14.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.2/perl5004delta">5.14.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.1/perl5004delta">5.14.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.0/perl5004delta">5.14.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.5/perl5004delta">5.12.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.4/perl5004delta">5.12.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.3/perl5004delta">5.12.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.2/perl5004delta">5.12.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.1/perl5004delta">5.12.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.0/perl5004delta">5.12.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.10.1/perl5004delta">5.10.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.10.0/perl5004delta">5.10.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.9/perl5004delta">5.8.9</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.8/perl5004delta">5.8.8</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.7/perl5004delta">5.8.7</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.6/perl5004delta">5.8.6</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.5/perl5004delta">5.8.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.4/perl5004delta">5.8.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.3/perl5004delta">5.8.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.2/perl5004delta">5.8.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.1/perl5004delta">5.8.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.0/perl5004delta">5.8.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.6.2/perl5004delta">5.6.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.6.1/perl5004delta">5.6.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.6.0/perl5004delta">5.6.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005_04/perl5004delta">5.005_04</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005_03/perl5004delta">5.005_03</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005_02/perl5004delta">5.005_02</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005_01/perl5004delta">5.005_01</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005/perl5004delta">5.005</a>
        </div>
      </li>
      <li class="nav-item dropdown text-nowrap">
        <a class="nav-link dropdown-toggle" href="perl5004delta.html#" id="dropdownlink-dev" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Dev</a>
        <div class="dropdown-menu" aria-labelledby="dropdownlink-dev">
          <a class="dropdown-item" href="https://perldoc.perl.org/blead/perl5004delta">blead</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.6/perl5004delta">5.39.6</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.5/perl5004delta">5.39.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.4/perl5004delta">5.39.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.3/perl5004delta">5.39.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.2/perl5004delta">5.39.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.1/perl5004delta">5.39.1</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.0-RC2/perl5004delta">5.38.0-RC2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.0-RC1/perl5004delta">5.38.0-RC1</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.11/perl5004delta">5.37.11</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.10/perl5004delta">5.37.10</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.9/perl5004delta">5.37.9</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.8/perl5004delta">5.37.8</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.7/perl5004delta">5.37.7</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.6/perl5004delta">5.37.6</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.5/perl5004delta">5.37.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.4/perl5004delta">5.37.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.3/perl5004delta">5.37.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.2/perl5004delta">5.37.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.1/perl5004delta">5.37.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.0/perl5004delta">5.37.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.11/perl5004delta">5.35.11</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.10/perl5004delta">5.35.10</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.9/perl5004delta">5.35.9</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.8/perl5004delta">5.35.8</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.7/perl5004delta">5.35.7</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.6/perl5004delta">5.35.6</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.5/perl5004delta">5.35.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.4/perl5004delta">5.35.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.3/perl5004delta">5.35.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.2/perl5004delta">5.35.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.1/perl5004delta">5.35.1</a>
          <a class="dropdown-item active" href="perl5004delta.html">5.35.0</a>
        </div>
      </li>
      <li class="nav-item dropdown text-nowrap">
        <a class="nav-link dropdown-toggle" href="perl5004delta.html#" id="dropdownlink-nav" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Documentation</a>
        <div class="dropdown-menu" aria-labelledby="dropdownlink-nav">
          <a class="dropdown-item" href="perl.html">Perl</a>
          <a class="dropdown-item" href="perlintro.html">Intro</a>
          <a class="dropdown-item" href="perl.html#Tutorials">Tutorials</a>
          <a class="dropdown-item" href="perlfaq.html">FAQs</a>
          <a class="dropdown-item" href="perl.html#Reference-Manual">Reference</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="perlop.html">Operators</a>
          <a class="dropdown-item" href="functions.html">Functions</a>
          <a class="dropdown-item" href="variables.html">Variables</a>
          <a class="dropdown-item" href="modules.html">Modules</a>
          <a class="dropdown-item" href="perlutil.html">Utilities</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="perlcommunity.html">Community</a>
          <a class="dropdown-item" href="perlhist.html">History</a>
        </div>
      </li>
    </ul>
    <ul class="navbar-nav">
      <script>
        function set_expand (expand) {
          var perldocdiv = document.getElementById('perldocdiv');
          var width = window.getComputedStyle(perldocdiv).getPropertyValue('max-width');
          var expanded = (width == '' || width == 'none') ? true : false;
          if (expand === null) {
            expand = !expanded;
          }
          if ((expand && !expanded) || (!expand && expanded)) {
            perldocdiv.style.setProperty('max-width', expand ? 'none' : '960px');
            var button_classlist = document.getElementById('content-expand-button').classList;
            if (expand) {
              button_classlist.add('btn-light');
              button_classlist.remove('btn-outline-light');
            } else {
              button_classlist.add('btn-outline-light');
              button_classlist.remove('btn-light');
            }
          }
          return expand;
        }
        function toggle_expand () {
          var expand = set_expand(null);
          document.cookie = 'perldoc_expand=' + (expand ? 1 : 0) + '; path=/; expires=Tue, 19 Jan 2038 03:14:07 UTC';
        }
        function read_expand () {
          return document.cookie.split(';').some(function (item) { return item.indexOf('perldoc_expand=1') >= 0 });
        }
        if (document.readyState === 'loading') {
          document.addEventListener('DOMContentLoaded', function () {
            if (read_expand()) {
              set_expand(true);
            }
          });
        } else if (read_expand()) {
          set_expand(true);
        }
      </script>
      <button id="content-expand-button" type="button" class="btn btn-outline-light d-none d-lg-inline-block mr-2" onclick="toggle_expand()">Expand</button>
    <ul>
    <form class="form-inline" method="get" action="https://perldoc.perl.org/5.35.0/search">
      <input class="form-control mr-3" type="search" name="q" placeholder="Search" aria-label="Search">
    </form>
  </div>
</nav>

    <div id="wrapperlicious" class="container-fluid">
      <div id="perldocdiv">
        <div id="links">
          <a href="perl5004delta.html">perl5004delta</a>
          <div id="more">
            (<a href="perl5004delta.txt">source</a>,
            <a href="https://metacpan.org/pod/perl5004delta">CPAN</a>)
          </div>
        </div>
        <div class="leading-notice">
          You are viewing the version of this documentation from Perl 5.35.0.
            This is a development version of Perl.
        </div>
        <h1><a id="toc">CONTENTS</a></h1>
                  <ul>
              <li>
                <a class="text-decoration-none" href="perl5004delta.html#NAME">NAME</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5004delta.html#DESCRIPTION">DESCRIPTION</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5004delta.html#Supported-Environments">Supported Environments</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5004delta.html#Core-Changes">Core Changes</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl5004delta.html#List-assignment-to-%25ENV-works">List assignment to %ENV works</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5004delta.html#Change-to-%22Can&#39;t-locate-Foo.pm-in-@INC%22-error">Change to &quot;Can&#39;t locate Foo.pm in @INC&quot; error</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5004delta.html#Compilation-option:-Binary-compatibility-with-5.003">Compilation option: Binary compatibility with 5.003</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5004delta.html#$PERL5OPT-environment-variable">$PERL5OPT environment variable</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5004delta.html#Limitations-on-M,-m,-and-T-options">Limitations on -M, -m, and -T options</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5004delta.html#More-precise-warnings">More precise warnings</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5004delta.html#Deprecated:-Inherited-AUTOLOAD-for-non-methods">Deprecated: Inherited AUTOLOAD for non-methods</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5004delta.html#Previously-deprecated-%25OVERLOAD-is-no-longer-usable">Previously deprecated %OVERLOAD is no longer usable</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5004delta.html#Subroutine-arguments-created-only-when-they&#39;re-modified">Subroutine arguments created only when they&#39;re modified</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5004delta.html#Group-vector-changeable-with-$)">Group vector changeable with $)</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5004delta.html#Fixed-parsing-of-$$%3Cdigit%3E,-&amp;$%3Cdigit%3E,-etc.">Fixed parsing of $$&lt;digit&gt;, &amp;$&lt;digit&gt;, etc.</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5004delta.html#Fixed-localization-of-$%3Cdigit%3E,-$&amp;,-etc.">Fixed localization of $&lt;digit&gt;, $&amp;, etc.</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5004delta.html#No-resetting-of-$.-on-implicit-close">No resetting of $. on implicit close</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5004delta.html#wantarray-may-return-undef">wantarray may return undef</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5004delta.html#eval-EXPR-determines-value-of-EXPR-in-scalar-context">eval EXPR determines value of EXPR in scalar context</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5004delta.html#Changes-to-tainting-checks">Changes to tainting checks</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5004delta.html#New-Opcode-module-and-revised-Safe-module">New Opcode module and revised Safe module</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5004delta.html#Embedding-improvements">Embedding improvements</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5004delta.html#Internal-change:-FileHandle-class-based-on-IO::*-classes">Internal change: FileHandle class based on IO::* classes</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5004delta.html#Internal-change:-PerlIO-abstraction-interface">Internal change: PerlIO abstraction interface</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5004delta.html#New-and-changed-syntax">New and changed syntax</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5004delta.html#New-and-changed-builtin-constants">New and changed builtin constants</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5004delta.html#New-and-changed-builtin-variables">New and changed builtin variables</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5004delta.html#New-and-changed-builtin-functions">New and changed builtin functions</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5004delta.html#New-builtin-methods">New builtin methods</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5004delta.html#TIEHANDLE-now-supported">TIEHANDLE now supported</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5004delta.html#Malloc-enhancements">Malloc enhancements</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5004delta.html#Miscellaneous-efficiency-enhancements">Miscellaneous efficiency enhancements</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl5004delta.html#Support-for-More-Operating-Systems">Support for More Operating Systems</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl5004delta.html#Win32">Win32</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5004delta.html#Plan-9">Plan 9</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5004delta.html#QNX">QNX</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5004delta.html#AmigaOS">AmigaOS</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl5004delta.html#Pragmata">Pragmata</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5004delta.html#Modules">Modules</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl5004delta.html#Required-Updates">Required Updates</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5004delta.html#Installation-directories">Installation directories</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5004delta.html#Module-information-summary">Module information summary</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5004delta.html#Fcntl">Fcntl</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5004delta.html#IO">IO</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5004delta.html#Math::Complex">Math::Complex</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5004delta.html#Math::Trig">Math::Trig</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5004delta.html#DB_File">DB_File</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5004delta.html#Net::Ping">Net::Ping</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5004delta.html#Object-oriented-overrides-for-builtin-operators">Object-oriented overrides for builtin operators</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl5004delta.html#Utility-Changes">Utility Changes</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl5004delta.html#pod2html">pod2html</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5004delta.html#xsubpp">xsubpp</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl5004delta.html#C-Language-API-Changes">C Language API Changes</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5004delta.html#Documentation-Changes">Documentation Changes</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5004delta.html#New-Diagnostics">New Diagnostics</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5004delta.html#BUGS">BUGS</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5004delta.html#SEE-ALSO">SEE ALSO</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5004delta.html#HISTORY">HISTORY</a>
              </li>
          </ul>

      <h1 id="NAME"><a class="permalink" href="perl5004delta.html#NAME">#</a>NAME</h1>

<p>perl5004delta - what&#39;s new for perl5.004</p>

<h1 id="DESCRIPTION"><a class="permalink" href="perl5004delta.html#DESCRIPTION">#</a>DESCRIPTION</h1>

<p>This document describes differences between the 5.003 release (as documented in <i>Programming Perl</i>, second edition--the Camel Book) and this one.</p>

<h1 id="Supported-Environments"><a class="permalink" href="perl5004delta.html#Supported-Environments">#</a><a id="Supported"></a>Supported Environments</h1>

<p>Perl5.004 builds out of the box on Unix, Plan 9, LynxOS, VMS, OS/2, QNX, AmigaOS, and Windows NT. Perl runs on Windows 95 as well, but it cannot be built there, for lack of a reasonable command interpreter.</p>

<h1 id="Core-Changes"><a class="permalink" href="perl5004delta.html#Core-Changes">#</a><a id="Core"></a>Core Changes</h1>

<p>Most importantly, many bugs were fixed, including several security problems. See the <i>Changes</i> file in the distribution for details.</p>

<h2 id="List-assignment-to-%ENV-works"><a class="permalink" href="perl5004delta.html#List-assignment-to-%25ENV-works">#</a><a id="List"></a><a id="List-assignment-to-ENV-works"></a>List assignment to %ENV works</h2>

<p><code>%ENV = ()</code> and <code>%ENV = @list</code> now work as expected (except on VMS where it generates a fatal error).</p>

<h2 id="Change-to-&quot;Can&#39;t-locate-Foo.pm-in-@INC&quot;-error"><a class="permalink" href="perl5004delta.html#Change-to-%22Can&#39;t-locate-Foo.pm-in-@INC%22-error">#</a><a id="Change"></a><a id="Change-to-Cant-locate-Foo.pm-in-INC-error"></a>Change to &quot;Can&#39;t locate Foo.pm in @INC&quot; error</h2>

<p>The error &quot;Can&#39;t locate Foo.pm in @INC&quot; now lists the contents of @INC for easier debugging.</p>

<h2 id="Compilation-option:-Binary-compatibility-with-5.003"><a class="permalink" href="perl5004delta.html#Compilation-option:-Binary-compatibility-with-5.003">#</a><a id="Compilation"></a>Compilation option: Binary compatibility with 5.003</h2>

<p>There is a new Configure question that asks if you want to maintain binary compatibility with Perl 5.003. If you choose binary compatibility, you do not have to recompile your extensions, but you might have symbol conflicts if you embed Perl in another application, just as in the 5.003 release. By default, binary compatibility is preserved at the expense of symbol table pollution.</p>

<h2 id="$PERL5OPT-environment-variable"><a class="permalink" href="perl5004delta.html#$PERL5OPT-environment-variable">#</a><a id="PERL5OPT-environment-variable"></a>$PERL5OPT environment variable</h2>

<p>You may now put Perl options in the $PERL5OPT environment variable. Unless Perl is running with taint checks, it will interpret this variable as if its contents had appeared on a &quot;#!perl&quot; line at the beginning of your script, except that hyphens are optional. PERL5OPT may only be used to set the following switches: <b>-[DIMUdmw]</b>.</p>

<h2 id="Limitations-on-M,-m,-and-T-options"><a class="permalink" href="perl5004delta.html#Limitations-on-M,-m,-and-T-options">#</a><a id="Limitations"></a><a id="Limitations-on--M--m-and--T-options"></a>Limitations on <b>-M</b>, <b>-m</b>, and <b>-T</b> options</h2>

<p>The <code>-M</code> and <code>-m</code> options are no longer allowed on the <code>#!</code> line of a script. If a script needs a module, it should invoke it with the <code>use</code> pragma.</p>

<p>The <b>-T</b> option is also forbidden on the <code>#!</code> line of a script, unless it was present on the Perl command line. Due to the way <code>#!</code> works, this usually means that <b>-T</b> must be in the first argument. Thus:</p>

<pre><code class="plaintext">#!/usr/bin/perl -T -w</code></pre>

<p>will probably work for an executable script invoked as <code>scriptname</code>, while:</p>

<pre><code class="plaintext">#!/usr/bin/perl -w -T</code></pre>

<p>will probably fail under the same conditions. (Non-Unix systems will probably not follow this rule.) But <code>perl scriptname</code> is guaranteed to fail, since then there is no chance of <b>-T</b> being found on the command line before it is found on the <code>#!</code> line.</p>

<h2 id="More-precise-warnings"><a class="permalink" href="perl5004delta.html#More-precise-warnings">#</a><a id="More"></a>More precise warnings</h2>

<p>If you removed the <b>-w</b> option from your Perl 5.003 scripts because it made Perl too verbose, we recommend that you try putting it back when you upgrade to Perl 5.004. Each new perl version tends to remove some undesirable warnings, while adding new warnings that may catch bugs in your scripts.</p>

<h2 id="Deprecated:-Inherited-AUTOLOAD-for-non-methods"><a class="permalink" href="perl5004delta.html#Deprecated:-Inherited-AUTOLOAD-for-non-methods">#</a><a id="Deprecated"></a>Deprecated: Inherited <code>AUTOLOAD</code> for non-methods</h2>

<p>Before Perl 5.004, <code>AUTOLOAD</code> functions were looked up as methods (using the <code>@ISA</code> hierarchy), even when the function to be autoloaded was called as a plain function (e.g. <code>Foo::bar()</code>), not a method (e.g. <code>Foo-&gt;bar()</code> or <code>$obj-&gt;bar()</code>).</p>

<p>Perl 5.005 will use method lookup only for methods&#39; <code>AUTOLOAD</code>s. However, there is a significant base of existing code that may be using the old behavior. So, as an interim step, Perl 5.004 issues an optional warning when a non-method uses an inherited <code>AUTOLOAD</code>.</p>

<p>The simple rule is: Inheritance will not work when autoloading non-methods. The simple fix for old code is: In any module that used to depend on inheriting <code>AUTOLOAD</code> for non-methods from a base class named <code>BaseClass</code>, execute <code>*AUTOLOAD = \&amp;BaseClass::AUTOLOAD</code> during startup.</p>

<h2 id="Previously-deprecated-%OVERLOAD-is-no-longer-usable"><a class="permalink" href="perl5004delta.html#Previously-deprecated-%25OVERLOAD-is-no-longer-usable">#</a><a id="Previously"></a><a id="Previously-deprecated-OVERLOAD-is-no-longer-usable"></a>Previously deprecated %OVERLOAD is no longer usable</h2>

<p>Using %OVERLOAD to define overloading was deprecated in 5.003. Overloading is now defined using the overload pragma. %OVERLOAD is still used internally but should not be used by Perl scripts. See <a href="overload.html">overload</a> for more details.</p>

<h2 id="Subroutine-arguments-created-only-when-they&#39;re-modified"><a class="permalink" href="perl5004delta.html#Subroutine-arguments-created-only-when-they&#39;re-modified">#</a><a id="Subroutine"></a><a id="Subroutine-arguments-created-only-when-theyre-modified"></a>Subroutine arguments created only when they&#39;re modified</h2>

<p>In Perl 5.004, nonexistent array and hash elements used as subroutine parameters are brought into existence only if they are actually assigned to (via <code>@_</code>).</p>

<p>Earlier versions of Perl vary in their handling of such arguments. Perl versions 5.002 and 5.003 always brought them into existence. Perl versions 5.000 and 5.001 brought them into existence only if they were not the first argument (which was almost certainly a bug). Earlier versions of Perl never brought them into existence.</p>

<p>For example, given this code:</p>

<pre><code>undef @a; undef %a;
sub show { print $_[0] };
sub change { $_[0]++ };
show($a[2]);
change($a{b});</code></pre>

<p>After this code executes in Perl 5.004, $a{b} exists but $a[2] does not. In Perl 5.002 and 5.003, both $a{b} and $a[2] would have existed (but $a[2]&#39;s value would have been undefined).</p>

<h2 id="Group-vector-changeable-with-$)"><a class="permalink" href="perl5004delta.html#Group-vector-changeable-with-$)">#</a><a id="Group"></a><a id="Group-vector-changeable-with"></a>Group vector changeable with <code>$)</code></h2>

<p>The <code>$)</code> special variable has always (well, in Perl 5, at least) reflected not only the current effective group, but also the group list as returned by the <code>getgroups()</code> C function (if there is one). However, until this release, there has not been a way to call the <code>setgroups()</code> C function from Perl.</p>

<p>In Perl 5.004, assigning to <code>$)</code> is exactly symmetrical with examining it: The first number in its string value is used as the effective gid; if there are any numbers after the first one, they are passed to the <code>setgroups()</code> C function (if there is one).</p>

<h2 id="Fixed-parsing-of-$$&lt;digit&gt;,-&amp;$&lt;digit&gt;,-etc."><a class="permalink" href="perl5004delta.html#Fixed-parsing-of-$$%3Cdigit%3E,-&amp;$%3Cdigit%3E,-etc.">#</a><a id="Fixed"></a><a id="Fixed-parsing-of-digit-digit-etc"></a>Fixed parsing of $$&lt;digit&gt;, &amp;$&lt;digit&gt;, etc.</h2>

<p>Perl versions before 5.004 misinterpreted any type marker followed by &quot;$&quot; and a digit. For example, &quot;$$0&quot; was incorrectly taken to mean &quot;${$}0&quot; instead of &quot;${$0}&quot;. This bug is (mostly) fixed in Perl 5.004.</p>

<p>However, the developers of Perl 5.004 could not fix this bug completely, because at least two widely-used modules depend on the old meaning of &quot;$$0&quot; in a string. So Perl 5.004 still interprets &quot;$$&lt;digit&gt;&quot; in the old (broken) way inside strings; but it generates this message as a warning. And in Perl 5.005, this special treatment will cease.</p>

<h2 id="Fixed-localization-of-$&lt;digit&gt;,-$&amp;,-etc."><a class="permalink" href="perl5004delta.html#Fixed-localization-of-$%3Cdigit%3E,-$&amp;,-etc.">#</a><a id="Fixed1"></a><a id="Fixed-localization-of-digit-etc"></a>Fixed localization of $&lt;digit&gt;, $&amp;, etc.</h2>

<p>Perl versions before 5.004 did not always properly localize the regex-related special variables. Perl 5.004 does localize them, as the documentation has always said it should. This may result in $1, $2, etc. no longer being set where existing programs use them.</p>

<h2 id="No-resetting-of-$.-on-implicit-close"><a class="permalink" href="perl5004delta.html#No-resetting-of-$.-on-implicit-close">#</a><a id="No"></a><a id="No-resetting-of-.-on-implicit-close"></a>No resetting of $. on implicit close</h2>

<p>The documentation for Perl 5.0 has always stated that <code>$.</code> is <i>not</i> reset when an already-open file handle is reopened with no intervening call to <code>close</code>. Due to a bug, perl versions 5.000 through 5.003 <i>did</i> reset <code>$.</code> under that circumstance; Perl 5.004 does not.</p>

<h2 id="wantarray-may-return-undef"><a class="permalink" href="perl5004delta.html#wantarray-may-return-undef">#</a><a id="wantarray"></a><code>wantarray</code> may return undef</h2>

<p>The <code>wantarray</code> operator returns true if a subroutine is expected to return a list, and false otherwise. In Perl 5.004, <code>wantarray</code> can also return the undefined value if a subroutine&#39;s return value will not be used at all, which allows subroutines to avoid a time-consuming calculation of a return value if it isn&#39;t going to be used.</p>

<h2 id="eval-EXPR-determines-value-of-EXPR-in-scalar-context"><a class="permalink" href="perl5004delta.html#eval-EXPR-determines-value-of-EXPR-in-scalar-context">#</a><a id="eval"></a><code>eval EXPR</code> determines value of EXPR in scalar context</h2>

<p>Perl (version 5) used to determine the value of EXPR inconsistently, sometimes incorrectly using the surrounding context for the determination. Now, the value of EXPR (before being parsed by eval) is always determined in a scalar context. Once parsed, it is executed as before, by providing the context that the scope surrounding the eval provided. This change makes the behavior Perl4 compatible, besides fixing bugs resulting from the inconsistent behavior. This program:</p>

<pre><code>@a = qw(time now is time);
print eval @a;
print &#39;|&#39;, scalar eval @a;</code></pre>

<p>used to print something like &quot;timenowis881399109|4&quot;, but now (and in perl4) prints &quot;4|4&quot;.</p>

<h2 id="Changes-to-tainting-checks"><a class="permalink" href="perl5004delta.html#Changes-to-tainting-checks">#</a><a id="Changes"></a>Changes to tainting checks</h2>

<p>A bug in previous versions may have failed to detect some insecure conditions when taint checks are turned on. (Taint checks are used in setuid or setgid scripts, or when explicitly turned on with the <code>-T</code> invocation option.) Although it&#39;s unlikely, this may cause a previously-working script to now fail, which should be construed as a blessing since that indicates a potentially-serious security hole was just plugged.</p>

<p>The new restrictions when tainting include:</p>

<dl>

<dt id="No-glob()-or"><a class="permalink" href="perl5004delta.html#No-glob()-or">#</a><a id="No-glob()-or-&lt;*&gt;"></a><a id="No1"></a><a id="No-glob-or"></a>No glob() or &lt;*&gt;</dt>
<dd>

<p>These operators may spawn the C shell (csh), which cannot be made safe. This restriction will be lifted in a future version of Perl when globbing is implemented without the use of an external program.</p>

</dd>
<dt id="No-spawning-if-tainted-$CDPATH,-$ENV,-$BASH_ENV"><a class="permalink" href="perl5004delta.html#No-spawning-if-tainted-$CDPATH,-$ENV,-$BASH_ENV">#</a><a id="No2"></a><a id="No-spawning-if-tainted-CDPATH-ENV-BASH_ENV"></a>No spawning if tainted $CDPATH, $ENV, $BASH_ENV</dt>
<dd>

<p>These environment variables may alter the behavior of spawned programs (especially shells) in ways that subvert security. So now they are treated as dangerous, in the manner of $IFS and $PATH.</p>

</dd>
<dt id="No-spawning-if-tainted-$TERM-doesn&#39;t-look-like-a-terminal-name"><a class="permalink" href="perl5004delta.html#No-spawning-if-tainted-$TERM-doesn&#39;t-look-like-a-terminal-name">#</a><a id="No3"></a><a id="No-spawning-if-tainted-TERM-doesnt-look-like-a-terminal-name"></a>No spawning if tainted $TERM doesn&#39;t look like a terminal name</dt>
<dd>

<p>Some termcap libraries do unsafe things with $TERM. However, it would be unnecessarily harsh to treat all $TERM values as unsafe, since only shell metacharacters can cause trouble in $TERM. So a tainted $TERM is considered to be safe if it contains only alphanumerics, underscores, dashes, and colons, and unsafe if it contains other characters (including whitespace).</p>

</dd>
</dl>

<h2 id="New-Opcode-module-and-revised-Safe-module"><a class="permalink" href="perl5004delta.html#New-Opcode-module-and-revised-Safe-module">#</a><a id="New"></a>New Opcode module and revised Safe module</h2>

<p>A new Opcode module supports the creation, manipulation and application of opcode masks. The revised Safe module has a new API and is implemented using the new Opcode module. Please read the new Opcode and Safe documentation.</p>

<h2 id="Embedding-improvements"><a class="permalink" href="perl5004delta.html#Embedding-improvements">#</a><a id="Embedding"></a>Embedding improvements</h2>

<p>In older versions of Perl it was not possible to create more than one Perl interpreter instance inside a single process without leaking like a sieve and/or crashing. The bugs that caused this behavior have all been fixed. However, you still must take care when embedding Perl in a C program. See the updated perlembed manpage for tips on how to manage your interpreters.</p>

<h2 id="Internal-change:-FileHandle-class-based-on-IO::*-classes"><a class="permalink" href="perl5004delta.html#Internal-change:-FileHandle-class-based-on-IO::*-classes">#</a><a id="Internal"></a><a id="Internal-change:-FileHandle-class-based-on-IO::-classes"></a>Internal change: FileHandle class based on IO::* classes</h2>

<p>File handles are now stored internally as type IO::Handle. The FileHandle module is still supported for backwards compatibility, but it is now merely a front end to the IO::* modules, specifically IO::Handle, IO::Seekable, and IO::File. We suggest, but do not require, that you use the IO::* modules in new code.</p>

<p>In harmony with this change, <code>*GLOB{FILEHANDLE}</code> is now just a backward-compatible synonym for <code>*GLOB{IO}</code>.</p>

<h2 id="Internal-change:-PerlIO-abstraction-interface"><a class="permalink" href="perl5004delta.html#Internal-change:-PerlIO-abstraction-interface">#</a><a id="Internal1"></a>Internal change: PerlIO abstraction interface</h2>

<p>It is now possible to build Perl with AT&amp;T&#39;s sfio IO package instead of stdio. See <a href="perlapio.html">perlapio</a> for more details, and the <i>INSTALL</i> file for how to use it.</p>

<h2 id="New-and-changed-syntax"><a class="permalink" href="perl5004delta.html#New-and-changed-syntax">#</a><a id="New1"></a>New and changed syntax</h2>

<dl>

<dt id="$coderef-&gt;(PARAMS)"><a class="permalink" href="perl5004delta.html#$coderef-%3E(PARAMS)">#</a><a id="coderef--PARAMS"></a>$coderef-&gt;(PARAMS)</dt>
<dd>

<p>A subroutine reference may now be suffixed with an arrow and a (possibly empty) parameter list. This syntax denotes a call of the referenced subroutine, with the given parameters (if any).</p>

<p>This new syntax follows the pattern of <span style="white-space: nowrap;"><code>$hashref-&gt;{FOO}</code></span> and <span style="white-space: nowrap;"><code>$aryref-&gt;[$foo]</code></span>: You may now write <span style="white-space: nowrap;"><code>&amp;$subref($foo)</code></span> as <span style="white-space: nowrap;"><code>$subref-&gt;($foo)</code></span>. All these arrow terms may be chained; thus, <span style="white-space: nowrap;"><code>&amp;{$table-&gt;{FOO}}($bar)</code></span> may now be written <span style="white-space: nowrap;"><code>$table-&gt;{FOO}-&gt;($bar)</code></span>.</p>

</dd>
</dl>

<h2 id="New-and-changed-builtin-constants"><a class="permalink" href="perl5004delta.html#New-and-changed-builtin-constants">#</a><a id="New2"></a>New and changed builtin constants</h2>

<dl>

<dt id="__PACKAGE__"><a class="permalink" href="perl5004delta.html#__PACKAGE__">#</a><a id="PACKAGE__"></a>__PACKAGE__</dt>
<dd>

<p>The current package name at compile time, or the undefined value if there is no current package (due to a <code>package;</code> directive). Like <code>__FILE__</code> and <code>__LINE__</code>, <code>__PACKAGE__</code> does <i>not</i> interpolate into strings.</p>

</dd>
</dl>

<h2 id="New-and-changed-builtin-variables"><a class="permalink" href="perl5004delta.html#New-and-changed-builtin-variables">#</a><a id="New3"></a>New and changed builtin variables</h2>

<dl>

<dt id="$^E"><a class="permalink" href="perl5004delta.html#$%5EE">#</a><a id="E"></a>$^E</dt>
<dd>

<p>Extended error message on some platforms. (Also known as $EXTENDED_OS_ERROR if you <code>use English</code>).</p>

</dd>
<dt id="$^H"><a class="permalink" href="perl5004delta.html#$%5EH">#</a><a id="H"></a>$^H</dt>
<dd>

<p>The current set of syntax checks enabled by <code>use strict</code>. See the documentation of <code>strict</code> for more details. Not actually new, but newly documented. Because it is intended for internal use by Perl core components, there is no <code>use English</code> long name for this variable.</p>

</dd>
<dt id="$^M"><a class="permalink" href="perl5004delta.html#$%5EM">#</a><a id="M"></a>$^M</dt>
<dd>

<p>By default, running out of memory it is not trappable. However, if compiled for this, Perl may use the contents of <code>$^M</code> as an emergency pool after die()ing with this message. Suppose that your Perl were compiled with -DPERL_EMERGENCY_SBRK and used Perl&#39;s malloc. Then</p>

<pre><code>$^M = &#39;a&#39; x (1&lt;&lt;16);</code></pre>

<p>would allocate a 64K buffer for use when in emergency. See the <i>INSTALL</i> file for information on how to enable this option. As a disincentive to casual use of this advanced feature, there is no <code>use English</code> long name for this variable.</p>

</dd>
</dl>

<h2 id="New-and-changed-builtin-functions"><a class="permalink" href="perl5004delta.html#New-and-changed-builtin-functions">#</a><a id="New4"></a>New and changed builtin functions</h2>

<dl>

<dt id="delete-on-slices"><a class="permalink" href="perl5004delta.html#delete-on-slices">#</a><a id="delete"></a>delete on slices</dt>
<dd>

<p>This now works. (e.g. <code>delete @ENV{&#39;PATH&#39;, &#39;MANPATH&#39;}</code>)</p>

</dd>
<dt id="flock"><a class="permalink" href="perl5004delta.html#flock">#</a>flock</dt>
<dd>

<p>is now supported on more platforms, prefers fcntl to lockf when emulating, and always flushes before (un)locking.</p>

</dd>
<dt id="printf-and-sprintf"><a class="permalink" href="perl5004delta.html#printf-and-sprintf">#</a><a id="printf"></a>printf and sprintf</dt>
<dd>

<p>Perl now implements these functions itself; it doesn&#39;t use the C library function sprintf() any more, except for floating-point numbers, and even then only known flags are allowed. As a result, it is now possible to know which conversions and flags will work, and what they will do.</p>

<p>The new conversions in Perl&#39;s sprintf() are:</p>

<pre><code>%i	a synonym for %d
%p	a pointer (the address of the Perl value, in hexadecimal)
%n	special: *stores* the number of characters output so far
     into the next variable in the parameter list </code></pre>

<p>The new flags that go between the <code>%</code> and the conversion are:</p>

<pre><code class="plaintext">#	prefix octal with &quot;0&quot;, hex with &quot;0x&quot;
h	interpret integer as C type &quot;short&quot; or &quot;unsigned short&quot;
V	interpret integer as Perl&#39;s standard integer type</code></pre>

<p>Also, where a number would appear in the flags, an asterisk (&quot;*&quot;) may be used instead, in which case Perl uses the next item in the parameter list as the given number (that is, as the field width or precision). If a field width obtained through &quot;*&quot; is negative, it has the same effect as the &#39;-&#39; flag: left-justification.</p>

<p>See <a href="perlfunc.html#sprintf">&quot;sprintf&quot; in perlfunc</a> for a complete list of conversion and flags.</p>

</dd>
<dt id="keys-as-an-lvalue"><a class="permalink" href="perl5004delta.html#keys-as-an-lvalue">#</a><a id="keys"></a>keys as an lvalue</dt>
<dd>

<p>As an lvalue, <code>keys</code> allows you to increase the number of hash buckets allocated for the given hash. This can gain you a measure of efficiency if you know the hash is going to get big. (This is similar to pre-extending an array by assigning a larger number to $#array.) If you say</p>

<pre><code>keys %hash = 200;</code></pre>

<p>then <code>%hash</code> will have at least 200 buckets allocated for it. These buckets will be retained even if you do <code>%hash = ()</code>; use <code>undef %hash</code> if you want to free the storage while <code>%hash</code> is still in scope. You can&#39;t shrink the number of buckets allocated for the hash using <code>keys</code> in this way (but you needn&#39;t worry about doing this by accident, as trying has no effect).</p>

</dd>
<dt id="my()-in-Control-Structures"><a class="permalink" href="perl5004delta.html#my()-in-Control-Structures">#</a><a id="my"></a><a id="my-in-Control-Structures"></a>my() in Control Structures</dt>
<dd>

<p>You can now use my() (with or without the parentheses) in the control expressions of control structures such as:</p>

<pre><code>while (defined(my $line = &lt;&gt;)) {
    $line = lc $line;
} continue {
    print $line;
}

if ((my $answer = &lt;STDIN&gt;) =~ /^y(es)?$/i) {
    user_agrees();
} elsif ($answer =~ /^n(o)?$/i) {
    user_disagrees();
} else {
    chomp $answer;
    die &quot;`$answer&#39; is neither `yes&#39; nor `no&#39;&quot;;
}</code></pre>

<p>Also, you can declare a foreach loop control variable as lexical by preceding it with the word &quot;my&quot;. For example, in:</p>

<pre><code>foreach my $i (1, 2, 3) {
    some_function();
}</code></pre>

<p>$i is a lexical variable, and the scope of $i extends to the end of the loop, but not beyond it.</p>

<p>Note that you still cannot use my() on global punctuation variables such as $_ and the like.</p>

</dd>
<dt id="pack()-and-unpack()"><a class="permalink" href="perl5004delta.html#pack()-and-unpack()">#</a><a id="pack"></a><a id="pack-and-unpack"></a>pack() and unpack()</dt>
<dd>

<p>A new format &#39;w&#39; represents a BER compressed integer (as defined in ASN.1). Its format is a sequence of one or more bytes, each of which provides seven bits of the total value, with the most significant first. Bit eight of each byte is set, except for the last byte, in which bit eight is clear.</p>

<p>If &#39;p&#39; or &#39;P&#39; are given undef as values, they now generate a NULL pointer.</p>

<p>Both pack() and unpack() now fail when their templates contain invalid types. (Invalid types used to be ignored.)</p>

</dd>
<dt id="sysseek()"><a class="permalink" href="perl5004delta.html#sysseek()">#</a><a id="sysseek"></a>sysseek()</dt>
<dd>

<p>The new sysseek() operator is a variant of seek() that sets and gets the file&#39;s system read/write position, using the lseek(2) system call. It is the only reliable way to seek before using sysread() or syswrite(). Its return value is the new position, or the undefined value on failure.</p>

</dd>
<dt id="use-VERSION"><a class="permalink" href="perl5004delta.html#use-VERSION">#</a><a id="use"></a>use VERSION</dt>
<dd>

<p>If the first argument to <code>use</code> is a number, it is treated as a version number instead of a module name. If the version of the Perl interpreter is less than VERSION, then an error message is printed and Perl exits immediately. Because <code>use</code> occurs at compile time, this check happens immediately during the compilation process, unlike <code>require VERSION</code>, which waits until runtime for the check. This is often useful if you need to check the current Perl version before <code>use</code>ing library modules which have changed in incompatible ways from older versions of Perl. (We try not to do this more than we have to.)</p>

</dd>
<dt id="use-Module-VERSION-LIST"><a class="permalink" href="perl5004delta.html#use-Module-VERSION-LIST">#</a><a id="use1"></a>use Module VERSION LIST</dt>
<dd>

<p>If the VERSION argument is present between Module and LIST, then the <code>use</code> will call the VERSION method in class Module with the given version as an argument. The default VERSION method, inherited from the UNIVERSAL class, croaks if the given version is larger than the value of the variable $Module::VERSION. (Note that there is not a comma after VERSION!)</p>

<p>This version-checking mechanism is similar to the one currently used in the Exporter module, but it is faster and can be used with modules that don&#39;t use the Exporter. It is the recommended method for new code.</p>

</dd>
<dt id="prototype(FUNCTION)"><a class="permalink" href="perl5004delta.html#prototype(FUNCTION)">#</a><a id="prototype"></a><a id="prototype-FUNCTION"></a>prototype(FUNCTION)</dt>
<dd>

<p>Returns the prototype of a function as a string (or <code>undef</code> if the function has no prototype). FUNCTION is a reference to or the name of the function whose prototype you want to retrieve. (Not actually new; just never documented before.)</p>

</dd>
<dt id="srand"><a class="permalink" href="perl5004delta.html#srand">#</a>srand</dt>
<dd>

<p>The default seed for <code>srand</code>, which used to be <code>time</code>, has been changed. Now it&#39;s a heady mix of difficult-to-predict system-dependent values, which should be sufficient for most everyday purposes.</p>

<p>Previous to version 5.004, calling <code>rand</code> without first calling <code>srand</code> would yield the same sequence of random numbers on most or all machines. Now, when perl sees that you&#39;re calling <code>rand</code> and haven&#39;t yet called <code>srand</code>, it calls <code>srand</code> with the default seed. You should still call <code>srand</code> manually if your code might ever be run on a pre-5.004 system, of course, or if you want a seed other than the default.</p>

</dd>
<dt id="$_-as-Default"><a class="permalink" href="perl5004delta.html#$_-as-Default">#</a><a id="as-Default"></a>$_ as Default</dt>
<dd>

<p>Functions documented in the Camel to default to $_ now in fact do, and all those that do are so documented in <a href="perlfunc.html">perlfunc</a>.</p>

</dd>
<dt id="m//gc-does-not-reset-search-position-on-failure"><a class="permalink" href="perl5004delta.html#m//gc-does-not-reset-search-position-on-failure">#</a><a id="m"></a><a id="m-gc-does-not-reset-search-position-on-failure"></a><code>m//gc</code> does not reset search position on failure</dt>
<dd>

<p>The <code>m//g</code> match iteration construct has always reset its target string&#39;s search position (which is visible through the <code>pos</code> operator) when a match fails; as a result, the next <code>m//g</code> match after a failure starts again at the beginning of the string. With Perl 5.004, this reset may be disabled by adding the &quot;c&quot; (for &quot;continue&quot;) modifier, i.e. <code>m//gc</code>. This feature, in conjunction with the <code>\G</code> zero-width assertion, makes it possible to chain matches together. See <a href="perlop.html">perlop</a> and <a href="perlre.html">perlre</a>.</p>

</dd>
<dt id="m//x-ignores-whitespace-before-?*+{}"><a class="permalink" href="perl5004delta.html#m//x-ignores-whitespace-before-?*+%7B%7D">#</a><a id="m1"></a><a id="m-x-ignores-whitespace-before"></a><code>m//x</code> ignores whitespace before ?*+{}</dt>
<dd>

<p>The <code>m//x</code> construct has always been intended to ignore all unescaped whitespace. However, before Perl 5.004, whitespace had the effect of escaping repeat modifiers like &quot;*&quot; or &quot;?&quot;; for example, <code>/a *b/x</code> was (mis)interpreted as <code>/a\*b/x</code>. This bug has been fixed in 5.004.</p>

</dd>
<dt id="nested-sub{}-closures-work-now"><a class="permalink" href="perl5004delta.html#nested-sub%7B%7D-closures-work-now">#</a><a id="nested"></a><a id="nested-sub-closures-work-now"></a>nested <code>sub{}</code> closures work now</dt>
<dd>

<p>Prior to the 5.004 release, nested anonymous functions didn&#39;t work right. They do now.</p>

</dd>
<dt id="formats-work-right-on-changing-lexicals"><a class="permalink" href="perl5004delta.html#formats-work-right-on-changing-lexicals">#</a><a id="formats"></a>formats work right on changing lexicals</dt>
<dd>

<p>Just like anonymous functions that contain lexical variables that change (like a lexical index variable for a <code>foreach</code> loop), formats now work properly. For example, this silently failed before (printed only zeros), but is fine now:</p>

<pre><code>    my $i;
    foreach $i ( 1 .. 10 ) {
	write;
    }
    format =
	my i is @#
	$i
    .</code></pre>

<p>However, it still fails (without a warning) if the foreach is within a subroutine:</p>

<pre><code>    my $i;
    sub foo {
      foreach $i ( 1 .. 10 ) {
	write;
      }
    }
    foo;
    format =
	my i is @#
	$i
    .</code></pre>

</dd>
</dl>

<h2 id="New-builtin-methods"><a class="permalink" href="perl5004delta.html#New-builtin-methods">#</a><a id="New5"></a>New builtin methods</h2>

<p>The <code>UNIVERSAL</code> package automatically contains the following methods that are inherited by all other classes:</p>

<dl>

<dt id="isa(CLASS)"><a class="permalink" href="perl5004delta.html#isa(CLASS)">#</a><a id="isa"></a><a id="isa-CLASS"></a>isa(CLASS)</dt>
<dd>

<p><code>isa</code> returns <i>true</i> if its object is blessed into a subclass of <code>CLASS</code></p>

<p><code>isa</code> is also exportable and can be called as a sub with two arguments. This allows the ability to check what a reference points to. Example:</p>

<pre><code>use UNIVERSAL qw(isa);

if(isa($ref, &#39;ARRAY&#39;)) {
   ...
}</code></pre>

</dd>
<dt id="can(METHOD)"><a class="permalink" href="perl5004delta.html#can(METHOD)">#</a><a id="can"></a><a id="can-METHOD"></a>can(METHOD)</dt>
<dd>

<p><code>can</code> checks to see if its object has a method called <code>METHOD</code>, if it does then a reference to the sub is returned; if it does not then <i>undef</i> is returned.</p>

</dd>
<dt id="VERSION(-[NEED]-)"><a class="permalink" href="perl5004delta.html#VERSION(-%5BNEED%5D-)">#</a><a id="VERSION"></a><a id="VERSION-NEED"></a>VERSION( [NEED] )</dt>
<dd>

<p><code>VERSION</code> returns the version number of the class (package). If the NEED argument is given then it will check that the current version (as defined by the $VERSION variable in the given package) not less than NEED; it will die if this is not the case. This method is normally called as a class method. This method is called automatically by the <code>VERSION</code> form of <code>use</code>.</p>

<pre><code>use A 1.2 qw(some imported subs);
# implies:
A-&gt;VERSION(1.2);</code></pre>

</dd>
</dl>

<p><b>NOTE:</b> <code>can</code> directly uses Perl&#39;s internal code for method lookup, and <code>isa</code> uses a very similar method and caching strategy. This may cause strange effects if the Perl code dynamically changes @ISA in any package.</p>

<p>You may add other methods to the UNIVERSAL class via Perl or XS code. You do not need to <code>use UNIVERSAL</code> in order to make these methods available to your program. This is necessary only if you wish to have <code>isa</code> available as a plain subroutine in the current package.</p>

<h2 id="TIEHANDLE-now-supported"><a class="permalink" href="perl5004delta.html#TIEHANDLE-now-supported">#</a><a id="TIEHANDLE"></a>TIEHANDLE now supported</h2>

<p>See <a href="perltie.html">perltie</a> for other kinds of tie()s.</p>

<dl>

<dt id="TIEHANDLE-classname,-LIST"><a class="permalink" href="perl5004delta.html#TIEHANDLE-classname,-LIST">#</a><a id="TIEHANDLE1"></a><a id="TIEHANDLE-classname-LIST"></a>TIEHANDLE classname, LIST</dt>
<dd>

<p>This is the constructor for the class. That means it is expected to return an object of some sort. The reference can be used to hold some internal information.</p>

<pre><code>    sub TIEHANDLE {
	print &quot;&lt;shout&gt;\n&quot;;
	my $i;
	return bless \$i, shift;
    }</code></pre>

</dd>
<dt id="PRINT-this,-LIST"><a class="permalink" href="perl5004delta.html#PRINT-this,-LIST">#</a><a id="PRINT"></a><a id="PRINT-this-LIST"></a>PRINT this, LIST</dt>
<dd>

<p>This method will be triggered every time the tied handle is printed to. Beyond its self reference it also expects the list that was passed to the print function.</p>

<pre><code>    sub PRINT {
	$r = shift;
	$$r++;
	return print join( $, =&gt; map {uc} @_), $\;
    }</code></pre>

</dd>
<dt id="PRINTF-this,-LIST"><a class="permalink" href="perl5004delta.html#PRINTF-this,-LIST">#</a><a id="PRINTF"></a><a id="PRINTF-this-LIST"></a>PRINTF this, LIST</dt>
<dd>

<p>This method will be triggered every time the tied handle is printed to with the <code>printf()</code> function. Beyond its self reference it also expects the format and list that was passed to the printf function.</p>

<pre><code>    sub PRINTF {
        shift;
	  my $fmt = shift;
        print sprintf($fmt, @_).&quot;\n&quot;;
    }</code></pre>

</dd>
<dt id="READ-this-LIST"><a class="permalink" href="perl5004delta.html#READ-this-LIST">#</a><a id="READ"></a>READ this LIST</dt>
<dd>

<p>This method will be called when the handle is read from via the <code>read</code> or <code>sysread</code> functions.</p>

<pre><code>    sub READ {
	$r = shift;
	my($buf,$len,$offset) = @_;
	print &quot;READ called, \$buf=$buf, \$len=$len, \$offset=$offset&quot;;
    }</code></pre>

</dd>
<dt id="READLINE-this"><a class="permalink" href="perl5004delta.html#READLINE-this">#</a><a id="READLINE"></a>READLINE this</dt>
<dd>

<p>This method will be called when the handle is read from. The method should return undef when there is no more data.</p>

<pre><code>    sub READLINE {
	$r = shift;
	return &quot;PRINT called $$r times\n&quot;
    }</code></pre>

</dd>
<dt id="GETC-this"><a class="permalink" href="perl5004delta.html#GETC-this">#</a><a id="GETC"></a>GETC this</dt>
<dd>

<p>This method will be called when the <code>getc</code> function is called.</p>

<pre><code class="plaintext">sub GETC { print &quot;Don&#39;t GETC, Get Perl&quot;; return &quot;a&quot;; }</code></pre>

</dd>
<dt id="DESTROY-this"><a class="permalink" href="perl5004delta.html#DESTROY-this">#</a><a id="DESTROY"></a>DESTROY this</dt>
<dd>

<p>As with the other types of ties, this method will be called when the tied handle is about to be destroyed. This is useful for debugging and possibly for cleaning up.</p>

<pre><code>    sub DESTROY {
	print &quot;&lt;/shout&gt;\n&quot;;
    }</code></pre>

</dd>
</dl>

<h2 id="Malloc-enhancements"><a class="permalink" href="perl5004delta.html#Malloc-enhancements">#</a><a id="Malloc"></a>Malloc enhancements</h2>

<p>If perl is compiled with the malloc included with the perl distribution (that is, if <code>perl -V:d_mymalloc</code> is &#39;define&#39;) then you can print memory statistics at runtime by running Perl thusly:</p>

<pre><code class="plaintext">env PERL_DEBUG_MSTATS=2 perl your_script_here</code></pre>

<p>The value of 2 means to print statistics after compilation and on exit; with a value of 1, the statistics are printed only on exit. (If you want the statistics at an arbitrary time, you&#39;ll need to install the optional module Devel::Peek.)</p>

<p>Three new compilation flags are recognized by malloc.c. (They have no effect if perl is compiled with system malloc().)</p>

<dl>

<dt id="-DPERL_EMERGENCY_SBRK"><a class="permalink" href="perl5004delta.html#-DPERL_EMERGENCY_SBRK">#</a><a id="DPERL_EMERGENCY_SBRK"></a>-DPERL_EMERGENCY_SBRK</dt>
<dd>

<p>If this macro is defined, running out of memory need not be a fatal error: a memory pool can allocated by assigning to the special variable <code>$^M</code>. See <a href="perl5004delta.html#%24%5EM">&quot;$^M&quot;</a>.</p>

</dd>
<dt id="-DPACK_MALLOC"><a class="permalink" href="perl5004delta.html#-DPACK_MALLOC">#</a><a id="DPACK_MALLOC"></a>-DPACK_MALLOC</dt>
<dd>

<p>Perl memory allocation is by bucket with sizes close to powers of two. Because of these malloc overhead may be big, especially for data of size exactly a power of two. If <code>PACK_MALLOC</code> is defined, perl uses a slightly different algorithm for small allocations (up to 64 bytes long), which makes it possible to have overhead down to 1 byte for allocations which are powers of two (and appear quite often).</p>

<p>Expected memory savings (with 8-byte alignment in <code>alignbytes</code>) is about 20% for typical Perl usage. Expected slowdown due to additional malloc overhead is in fractions of a percent (hard to measure, because of the effect of saved memory on speed).</p>

</dd>
<dt id="-DTWO_POT_OPTIMIZE"><a class="permalink" href="perl5004delta.html#-DTWO_POT_OPTIMIZE">#</a><a id="DTWO_POT_OPTIMIZE"></a>-DTWO_POT_OPTIMIZE</dt>
<dd>

<p>Similarly to <code>PACK_MALLOC</code>, this macro improves allocations of data with size close to a power of two; but this works for big allocations (starting with 16K by default). Such allocations are typical for big hashes and special-purpose scripts, especially image processing.</p>

<p>On recent systems, the fact that perl requires 2M from system for 1M allocation will not affect speed of execution, since the tail of such a chunk is not going to be touched (and thus will not require real memory). However, it may result in a premature out-of-memory error. So if you will be manipulating very large blocks with sizes close to powers of two, it would be wise to define this macro.</p>

<p>Expected saving of memory is 0-100% (100% in applications which require most memory in such 2**n chunks); expected slowdown is negligible.</p>

</dd>
</dl>

<h2 id="Miscellaneous-efficiency-enhancements"><a class="permalink" href="perl5004delta.html#Miscellaneous-efficiency-enhancements">#</a><a id="Miscellaneous"></a>Miscellaneous efficiency enhancements</h2>

<p>Functions that have an empty prototype and that do nothing but return a fixed value are now inlined (e.g. <code>sub PI () { 3.14159 }</code>).</p>

<p>Each unique hash key is only allocated once, no matter how many hashes have an entry with that key. So even if you have 100 copies of the same hash, the hash keys never have to be reallocated.</p>

<h1 id="Support-for-More-Operating-Systems"><a class="permalink" href="perl5004delta.html#Support-for-More-Operating-Systems">#</a><a id="Support"></a>Support for More Operating Systems</h1>

<p>Support for the following operating systems is new in Perl 5.004.</p>

<h2 id="Win32"><a class="permalink" href="perl5004delta.html#Win32">#</a>Win32</h2>

<p>Perl 5.004 now includes support for building a &quot;native&quot; perl under Windows NT, using the Microsoft Visual C++ compiler (versions 2.0 and above) or the Borland C++ compiler (versions 5.02 and above). The resulting perl can be used under Windows 95 (if it is installed in the same directory locations as it got installed in Windows NT). This port includes support for perl extension building tools like <a href="./ExtUtils::MakeMaker.html">ExtUtils::MakeMaker</a> and <a href="h2xs.html">h2xs</a>, so that many extensions available on the Comprehensive Perl Archive Network (CPAN) can now be readily built under Windows NT. See http://www.perl.com/ for more information on CPAN and <i>README.win32</i> in the perl distribution for more details on how to get started with building this port.</p>

<p>There is also support for building perl under the Cygwin32 environment. Cygwin32 is a set of GNU tools that make it possible to compile and run many Unix programs under Windows NT by providing a mostly Unix-like interface for compilation and execution. See <i>README.cygwin32</i> in the perl distribution for more details on this port and how to obtain the Cygwin32 toolkit.</p>

<h2 id="Plan-9"><a class="permalink" href="perl5004delta.html#Plan-9">#</a><a id="Plan"></a>Plan 9</h2>

<p>See <i>README.plan9</i> in the perl distribution.</p>

<h2 id="QNX"><a class="permalink" href="perl5004delta.html#QNX">#</a>QNX</h2>

<p>See <i>README.qnx</i> in the perl distribution.</p>

<h2 id="AmigaOS"><a class="permalink" href="perl5004delta.html#AmigaOS">#</a>AmigaOS</h2>

<p>See <i>README.amigaos</i> in the perl distribution.</p>

<h1 id="Pragmata"><a class="permalink" href="perl5004delta.html#Pragmata">#</a>Pragmata</h1>

<p>Six new pragmatic modules exist:</p>

<dl>

<dt id="use-autouse-MODULE-=&gt;-qw(sub1-sub2-sub3)"><a class="permalink" href="perl5004delta.html#use-autouse-MODULE-=%3E-qw(sub1-sub2-sub3)">#</a><a id="use2"></a><a id="use-autouse-MODULE-qw-sub1-sub2-sub3"></a>use autouse MODULE =&gt; qw(sub1 sub2 sub3)</dt>
<dd>

<p>Defers <code>require MODULE</code> until someone calls one of the specified subroutines (which must be exported by MODULE). This pragma should be used with caution, and only when necessary.</p>

</dd>
<dt id="use-blib"><a class="permalink" href="perl5004delta.html#use-blib">#</a><a id="use3"></a>use blib</dt>
<dd>

</dd>
<dt id="use-blib-&#39;dir&#39;"><a class="permalink" href="perl5004delta.html#use-blib-&#39;dir&#39;">#</a><a id="use4"></a><a id="use-blib-dir"></a>use blib &#39;dir&#39;</dt>
<dd>

<p>Looks for MakeMaker-like <i>&#39;blib&#39;</i> directory structure starting in <i>dir</i> (or current directory) and working back up to five levels of parent directories.</p>

<p>Intended for use on command line with <b>-M</b> option as a way of testing arbitrary scripts against an uninstalled version of a package.</p>

</dd>
<dt id="use-constant-NAME-=&gt;-VALUE"><a class="permalink" href="perl5004delta.html#use-constant-NAME-=%3E-VALUE">#</a><a id="use5"></a><a id="use-constant-NAME-VALUE"></a>use constant NAME =&gt; VALUE</dt>
<dd>

<p>Provides a convenient interface for creating compile-time constants, See <a href="perlsub.html#Constant-Functions">&quot;Constant Functions&quot; in perlsub</a>.</p>

</dd>
<dt id="use-locale"><a class="permalink" href="perl5004delta.html#use-locale">#</a><a id="use6"></a>use locale</dt>
<dd>

<p>Tells the compiler to enable (or disable) the use of POSIX locales for builtin operations.</p>

<p>When <code>use locale</code> is in effect, the current LC_CTYPE locale is used for regular expressions and case mapping; LC_COLLATE for string ordering; and LC_NUMERIC for numeric formatting in printf and sprintf (but <b>not</b> in print). LC_NUMERIC is always used in write, since lexical scoping of formats is problematic at best.</p>

<p>Each <code>use locale</code> or <code>no locale</code> affects statements to the end of the enclosing BLOCK or, if not inside a BLOCK, to the end of the current file. Locales can be switched and queried with POSIX::setlocale().</p>

<p>See <a href="perllocale.html">perllocale</a> for more information.</p>

</dd>
<dt id="use-ops"><a class="permalink" href="perl5004delta.html#use-ops">#</a><a id="use7"></a>use ops</dt>
<dd>

<p>Disable unsafe opcodes, or any named opcodes, when compiling Perl code.</p>

</dd>
<dt id="use-vmsish"><a class="permalink" href="perl5004delta.html#use-vmsish">#</a><a id="use8"></a>use vmsish</dt>
<dd>

<p>Enable VMS-specific language features. Currently, there are three VMS-specific features available: &#39;status&#39;, which makes <code>$?</code> and <code>system</code> return genuine VMS status values instead of emulating POSIX; &#39;exit&#39;, which makes <code>exit</code> take a genuine VMS status value instead of assuming that <code>exit 1</code> is an error; and &#39;time&#39;, which makes all times relative to the local time zone, in the VMS tradition.</p>

</dd>
</dl>

<h1 id="Modules"><a class="permalink" href="perl5004delta.html#Modules">#</a>Modules</h1>

<h2 id="Required-Updates"><a class="permalink" href="perl5004delta.html#Required-Updates">#</a><a id="Required"></a>Required Updates</h2>

<p>Though Perl 5.004 is compatible with almost all modules that work with Perl 5.003, there are a few exceptions:</p>

<pre><code class="plaintext">Module   Required Version for Perl 5.004
------   -------------------------------
Filter   Filter-1.12
LWP      libwww-perl-5.08
Tk       Tk400.202 (-w makes noise)</code></pre>

<p>Also, the majordomo mailing list program, version 1.94.1, doesn&#39;t work with Perl 5.004 (nor with perl 4), because it executes an invalid regular expression. This bug is fixed in majordomo version 1.94.2.</p>

<h2 id="Installation-directories"><a class="permalink" href="perl5004delta.html#Installation-directories">#</a><a id="Installation"></a>Installation directories</h2>

<p>The <i>installperl</i> script now places the Perl source files for extensions in the architecture-specific library directory, which is where the shared libraries for extensions have always been. This change is intended to allow administrators to keep the Perl 5.004 library directory unchanged from a previous version, without running the risk of binary incompatibility between extensions&#39; Perl source and shared libraries.</p>

<h2 id="Module-information-summary"><a class="permalink" href="perl5004delta.html#Module-information-summary">#</a><a id="Module"></a>Module information summary</h2>

<p>Brand new modules, arranged by topic rather than strictly alphabetically:</p>

<pre><code>CGI.pm               Web server interface (&quot;Common Gateway Interface&quot;)
CGI/Apache.pm        Support for Apache&#39;s Perl module
CGI/Carp.pm          Log server errors with helpful context
CGI/Fast.pm          Support for FastCGI (persistent server process)
CGI/Push.pm          Support for server push
CGI/Switch.pm        Simple interface for multiple server types

CPAN                 Interface to Comprehensive Perl Archive Network
CPAN::FirstTime      Utility for creating CPAN configuration file
CPAN::Nox            Runs CPAN while avoiding compiled extensions

IO.pm                Top-level interface to IO::* classes
IO/File.pm           IO::File extension Perl module
IO/Handle.pm         IO::Handle extension Perl module
IO/Pipe.pm           IO::Pipe extension Perl module
IO/Seekable.pm       IO::Seekable extension Perl module
IO/Select.pm         IO::Select extension Perl module
IO/Socket.pm         IO::Socket extension Perl module

Opcode.pm            Disable named opcodes when compiling Perl code

ExtUtils/Embed.pm    Utilities for embedding Perl in C programs
ExtUtils/testlib.pm  Fixes up @INC to use just-built extension

FindBin.pm           Find path of currently executing program

Class/Struct.pm      Declare struct-like datatypes as Perl classes
File/stat.pm         By-name interface to Perl&#39;s builtin stat
Net/hostent.pm       By-name interface to Perl&#39;s builtin gethost*
Net/netent.pm        By-name interface to Perl&#39;s builtin getnet*
Net/protoent.pm      By-name interface to Perl&#39;s builtin getproto*
Net/servent.pm       By-name interface to Perl&#39;s builtin getserv*
Time/gmtime.pm       By-name interface to Perl&#39;s builtin gmtime
Time/localtime.pm    By-name interface to Perl&#39;s builtin localtime
Time/tm.pm           Internal object for Time::{gm,local}time
User/grent.pm        By-name interface to Perl&#39;s builtin getgr*
User/pwent.pm        By-name interface to Perl&#39;s builtin getpw*

Tie/RefHash.pm       Base class for tied hashes with references as keys

UNIVERSAL.pm         Base class for *ALL* classes</code></pre>

<h2 id="Fcntl"><a class="permalink" href="perl5004delta.html#Fcntl">#</a>Fcntl</h2>

<p>New constants in the existing Fcntl modules are now supported, provided that your operating system happens to support them:</p>

<pre><code class="plaintext">F_GETOWN F_SETOWN
O_ASYNC O_DEFER O_DSYNC O_FSYNC O_SYNC
O_EXLOCK O_SHLOCK</code></pre>

<p>These constants are intended for use with the Perl operators sysopen() and fcntl() and the basic database modules like SDBM_File. For the exact meaning of these and other Fcntl constants please refer to your operating system&#39;s documentation for fcntl() and open().</p>

<p>In addition, the Fcntl module now provides these constants for use with the Perl operator flock():</p>

<pre><code class="plaintext">LOCK_SH LOCK_EX LOCK_NB LOCK_UN</code></pre>

<p>These constants are defined in all environments (because where there is no flock() system call, Perl emulates it). However, for historical reasons, these constants are not exported unless they are explicitly requested with the &quot;:flock&quot; tag (e.g. <code>use Fcntl &#39;:flock&#39;</code>).</p>

<h2 id="IO"><a class="permalink" href="perl5004delta.html#IO">#</a>IO</h2>

<p>The IO module provides a simple mechanism to load all the IO modules at one go. Currently this includes:</p>

<pre><code class="plaintext">IO::Handle
IO::Seekable
IO::File
IO::Pipe
IO::Socket</code></pre>

<p>For more information on any of these modules, please see its respective documentation.</p>

<h2 id="Math::Complex"><a class="permalink" href="perl5004delta.html#Math::Complex">#</a><a id="Math"></a>Math::Complex</h2>

<p>The Math::Complex module has been totally rewritten, and now supports more operations. These are overloaded:</p>

<pre><code class="plaintext">+ - * / ** &lt;=&gt; neg ~ abs sqrt exp log sin cos atan2 &quot;&quot; (stringify)</code></pre>

<p>And these functions are now exported:</p>

<pre><code class="plaintext">pi i Re Im arg
log10 logn ln cbrt root
tan
csc sec cot
asin acos atan
acsc asec acot
sinh cosh tanh
csch sech coth
asinh acosh atanh
acsch asech acoth
cplx cplxe</code></pre>

<h2 id="Math::Trig"><a class="permalink" href="perl5004delta.html#Math::Trig">#</a><a id="Math1"></a>Math::Trig</h2>

<p>This new module provides a simpler interface to parts of Math::Complex for those who need trigonometric functions only for real numbers.</p>

<h2 id="DB_File"><a class="permalink" href="perl5004delta.html#DB_File">#</a>DB_File</h2>

<p>There have been quite a few changes made to DB_File. Here are a few of the highlights:</p>

<ul>

<li><p>Fixed a handful of bugs.</p>

</li>
<li><p>By public demand, added support for the standard hash function exists().</p>

</li>
<li><p>Made it compatible with Berkeley DB 1.86.</p>

</li>
<li><p>Made negative subscripts work with RECNO interface.</p>

</li>
<li><p>Changed the default flags from O_RDWR to O_CREAT|O_RDWR and the default mode from 0640 to 0666.</p>

</li>
<li><p>Made DB_File automatically import the open() constants (O_RDWR, O_CREAT etc.) from Fcntl, if available.</p>

</li>
<li><p>Updated documentation.</p>

</li>
</ul>

<p>Refer to the HISTORY section in DB_File.pm for a complete list of changes. Everything after DB_File 1.01 has been added since 5.003.</p>

<h2 id="Net::Ping"><a class="permalink" href="perl5004delta.html#Net::Ping">#</a><a id="Net"></a>Net::Ping</h2>

<p>Major rewrite - support added for both udp echo and real icmp pings.</p>

<h2 id="Object-oriented-overrides-for-builtin-operators"><a class="permalink" href="perl5004delta.html#Object-oriented-overrides-for-builtin-operators">#</a><a id="Object"></a>Object-oriented overrides for builtin operators</h2>

<p>Many of the Perl builtins returning lists now have object-oriented overrides. These are:</p>

<pre><code class="plaintext">File::stat
Net::hostent
Net::netent
Net::protoent
Net::servent
Time::gmtime
Time::localtime
User::grent
User::pwent</code></pre>

<p>For example, you can now say</p>

<pre><code>use File::stat;
use User::pwent;
$his = (stat($filename)-&gt;st_uid == pwent($whoever)-&gt;pw_uid);</code></pre>

<h1 id="Utility-Changes"><a class="permalink" href="perl5004delta.html#Utility-Changes">#</a><a id="Utility"></a>Utility Changes</h1>

<h2 id="pod2html"><a class="permalink" href="perl5004delta.html#pod2html">#</a>pod2html</h2>

<dl>

<dt id="Sends-converted-HTML-to-standard-output"><a class="permalink" href="perl5004delta.html#Sends-converted-HTML-to-standard-output">#</a><a id="Sends"></a>Sends converted HTML to standard output</dt>
<dd>

<p>The <i>pod2html</i> utility included with Perl 5.004 is entirely new. By default, it sends the converted HTML to its standard output, instead of writing it to a file like Perl 5.003&#39;s <i>pod2html</i> did. Use the <b>--outfile=FILENAME</b> option to write to a file.</p>

</dd>
</dl>

<h2 id="xsubpp"><a class="permalink" href="perl5004delta.html#xsubpp">#</a>xsubpp</h2>

<dl>

<dt id="void-XSUBs-now-default-to-returning-nothing"><a class="permalink" href="perl5004delta.html#void-XSUBs-now-default-to-returning-nothing">#</a><a id="void"></a><code>void</code> XSUBs now default to returning nothing</dt>
<dd>

<p>Due to a documentation/implementation bug in previous versions of Perl, XSUBs with a return type of <code>void</code> have actually been returning one value. Usually that value was the GV for the XSUB, but sometimes it was some already freed or reused value, which would sometimes lead to program failure.</p>

<p>In Perl 5.004, if an XSUB is declared as returning <code>void</code>, it actually returns no value, i.e. an empty list (though there is a backward-compatibility exception; see below). If your XSUB really does return an SV, you should give it a return type of <code>SV *</code>.</p>

<p>For backward compatibility, <i>xsubpp</i> tries to guess whether a <code>void</code> XSUB is really <code>void</code> or if it wants to return an <code>SV *</code>. It does so by examining the text of the XSUB: if <i>xsubpp</i> finds what looks like an assignment to <code>ST(0)</code>, it assumes that the XSUB&#39;s return type is really <code>SV *</code>.</p>

</dd>
</dl>

<h1 id="C-Language-API-Changes"><a class="permalink" href="perl5004delta.html#C-Language-API-Changes">#</a><a id="C"></a>C Language API Changes</h1>

<dl>

<dt id="gv_fetchmethod-and-perl_call_sv"><a class="permalink" href="perl5004delta.html#gv_fetchmethod-and-perl_call_sv">#</a><a id="gv_fetchmethod"></a><code>gv_fetchmethod</code> and <code>perl_call_sv</code></dt>
<dd>

<p>The <code>gv_fetchmethod</code> function finds a method for an object, just like in Perl 5.003. The GV it returns may be a method cache entry. However, in Perl 5.004, method cache entries are not visible to users; therefore, they can no longer be passed directly to <code>perl_call_sv</code>. Instead, you should use the <code>GvCV</code> macro on the GV to extract its CV, and pass the CV to <code>perl_call_sv</code>.</p>

<p>The most likely symptom of passing the result of <code>gv_fetchmethod</code> to <code>perl_call_sv</code> is Perl&#39;s producing an &quot;Undefined subroutine called&quot; error on the <i>second</i> call to a given method (since there is no cache on the first call).</p>

</dd>
<dt id="perl_eval_pv"><a class="permalink" href="perl5004delta.html#perl_eval_pv">#</a><code>perl_eval_pv</code></dt>
<dd>

<p>A new function handy for eval&#39;ing strings of Perl code inside C code. This function returns the value from the eval statement, which can be used instead of fetching globals from the symbol table. See <a href="perlguts.html">perlguts</a>, <a href="perlembed.html">perlembed</a> and <a href="perlcall.html">perlcall</a> for details and examples.</p>

</dd>
<dt id="Extended-API-for-manipulating-hashes"><a class="permalink" href="perl5004delta.html#Extended-API-for-manipulating-hashes">#</a><a id="Extended"></a>Extended API for manipulating hashes</dt>
<dd>

<p>Internal handling of hash keys has changed. The old hashtable API is still fully supported, and will likely remain so. The additions to the API allow passing keys as <code>SV*</code>s, so that <code>tied</code> hashes can be given real scalars as keys rather than plain strings (nontied hashes still can only use strings as keys). New extensions must use the new hash access functions and macros if they wish to use <code>SV*</code> keys. These additions also make it feasible to manipulate <code>HE*</code>s (hash entries), which can be more efficient. See <a href="perlguts.html">perlguts</a> for details.</p>

</dd>
</dl>

<h1 id="Documentation-Changes"><a class="permalink" href="perl5004delta.html#Documentation-Changes">#</a><a id="Documentation"></a>Documentation Changes</h1>

<p>Many of the base and library pods were updated. These new pods are included in section 1:</p>

<dl>

<dt id="perldelta"><a class="permalink" href="perl5004delta.html#perldelta">#</a><a href="perldelta.html">perldelta</a></dt>
<dd>

<p>This document.</p>

</dd>
<dt id="perlfaq"><a class="permalink" href="perl5004delta.html#perlfaq">#</a><a href="perlfaq.html">perlfaq</a></dt>
<dd>

<p>Frequently asked questions.</p>

</dd>
<dt id="perllocale"><a class="permalink" href="perl5004delta.html#perllocale">#</a><a href="perllocale.html">perllocale</a></dt>
<dd>

<p>Locale support (internationalization and localization).</p>

</dd>
<dt id="perltoot"><a class="permalink" href="perl5004delta.html#perltoot">#</a><a href="perltoot.html">perltoot</a></dt>
<dd>

<p>Tutorial on Perl OO programming.</p>

</dd>
<dt id="perlapio"><a class="permalink" href="perl5004delta.html#perlapio">#</a><a href="perlapio.html">perlapio</a></dt>
<dd>

<p>Perl internal IO abstraction interface.</p>

</dd>
<dt id="perlmodlib"><a class="permalink" href="perl5004delta.html#perlmodlib">#</a><a href="perlmodlib.html">perlmodlib</a></dt>
<dd>

<p>Perl module library and recommended practice for module creation. Extracted from <a href="perlmod.html">perlmod</a> (which is much smaller as a result).</p>

</dd>
<dt id="perldebug"><a class="permalink" href="perl5004delta.html#perldebug">#</a><a href="perldebug.html">perldebug</a></dt>
<dd>

<p>Although not new, this has been massively updated.</p>

</dd>
<dt id="perlsec"><a class="permalink" href="perl5004delta.html#perlsec">#</a><a href="perlsec.html">perlsec</a></dt>
<dd>

<p>Although not new, this has been massively updated.</p>

</dd>
</dl>

<h1 id="New-Diagnostics"><a class="permalink" href="perl5004delta.html#New-Diagnostics">#</a><a id="New6"></a>New Diagnostics</h1>

<p>Several new conditions will trigger warnings that were silent before. Some only affect certain platforms. The following new warnings and errors outline these. These messages are classified as follows (listed in increasing order of desperation):</p>

<pre><code class="plaintext">(W) A warning (optional).
(D) A deprecation (optional).
(S) A severe warning (mandatory).
(F) A fatal error (trappable).
(P) An internal error you should never see (trappable).
(X) A very fatal error (nontrappable).
(A) An alien error message (not generated by Perl).</code></pre>

<dl>

<dt id="&quot;my&quot;-variable-%s-masks-earlier-declaration-in-same-scope"><a class="permalink" href="perl5004delta.html#%22my%22-variable-%25s-masks-earlier-declaration-in-same-scope">#</a><a id="my-variable-s-masks-earlier-declaration-in-same-scope"></a>&quot;my&quot; variable %s masks earlier declaration in same scope</dt>
<dd>

<p>(W) A lexical variable has been redeclared in the same scope, effectively eliminating all access to the previous instance. This is almost always a typographical error. Note that the earlier variable will still exist until the end of the scope or until all closure referents to it are destroyed.</p>

</dd>
<dt id="%s-argument-is-not-a-HASH-element-or-slice"><a class="permalink" href="perl5004delta.html#%25s-argument-is-not-a-HASH-element-or-slice">#</a><a id="s-argument-is-not-a-HASH-element-or-slice"></a>%s argument is not a HASH element or slice</dt>
<dd>

<p>(F) The argument to delete() must be either a hash element, such as</p>

<pre><code>$foo{$bar}
$ref-&gt;[12]-&gt;{&quot;susie&quot;}</code></pre>

<p>or a hash slice, such as</p>

<pre><code>@foo{$bar, $baz, $xyzzy}
@{$ref-&gt;[12]}{&quot;susie&quot;, &quot;queue&quot;}</code></pre>

</dd>
<dt id="Allocation-too-large:-%lx"><a class="permalink" href="perl5004delta.html#Allocation-too-large:-%25lx">#</a><a id="Allocation"></a><a id="Allocation-too-large:-lx"></a>Allocation too large: %lx</dt>
<dd>

<p>(X) You can&#39;t allocate more than 64K on an MS-DOS machine.</p>

</dd>
<dt id="Allocation-too-large"><a class="permalink" href="perl5004delta.html#Allocation-too-large">#</a><a id="Allocation1"></a>Allocation too large</dt>
<dd>

<p>(F) You can&#39;t allocate more than 2^31+&quot;small amount&quot; bytes.</p>

</dd>
<dt id="Applying-%s-to-%s-will-act-on-scalar(%s)"><a class="permalink" href="perl5004delta.html#Applying-%25s-to-%25s-will-act-on-scalar(%25s)">#</a><a id="Applying"></a><a id="Applying-s-to-s-will-act-on-scalar-s"></a>Applying %s to %s will act on scalar(%s)</dt>
<dd>

<p>(W) The pattern match (//), substitution (s///), and transliteration (tr///) operators work on scalar values. If you apply one of them to an array or a hash, it will convert the array or hash to a scalar value (the length of an array or the population info of a hash) and then work on that scalar value. This is probably not what you meant to do. See <a href="perlfunc.html#grep">&quot;grep&quot; in perlfunc</a> and <a href="perlfunc.html#map">&quot;map&quot; in perlfunc</a> for alternatives.</p>

</dd>
<dt id="Attempt-to-free-nonexistent-shared-string"><a class="permalink" href="perl5004delta.html#Attempt-to-free-nonexistent-shared-string">#</a><a id="Attempt"></a>Attempt to free nonexistent shared string</dt>
<dd>

<p>(P) Perl maintains a reference counted internal table of strings to optimize the storage and access of hash keys and other strings. This indicates someone tried to decrement the reference count of a string that can no longer be found in the table.</p>

</dd>
<dt id="Attempt-to-use-reference-as-lvalue-in-substr"><a class="permalink" href="perl5004delta.html#Attempt-to-use-reference-as-lvalue-in-substr">#</a><a id="Attempt1"></a>Attempt to use reference as lvalue in substr</dt>
<dd>

<p>(W) You supplied a reference as the first argument to substr() used as an lvalue, which is pretty strange. Perhaps you forgot to dereference it first. See <a href="perlfunc.html#substr">&quot;substr&quot; in perlfunc</a>.</p>

</dd>
<dt id="Bareword-&quot;%s&quot;-refers-to-nonexistent-package"><a class="permalink" href="perl5004delta.html#Bareword-%22%25s%22-refers-to-nonexistent-package">#</a><a id="Bareword"></a><a id="Bareword-s-refers-to-nonexistent-package"></a>Bareword &quot;%s&quot; refers to nonexistent package</dt>
<dd>

<p>(W) You used a qualified bareword of the form <code>Foo::</code>, but the compiler saw no other uses of that namespace before that point. Perhaps you need to predeclare a package?</p>

</dd>
<dt id="Can&#39;t-redefine-active-sort-subroutine-%s"><a class="permalink" href="perl5004delta.html#Can&#39;t-redefine-active-sort-subroutine-%25s">#</a><a id="Can"></a><a id="Cant-redefine-active-sort-subroutine-s"></a>Can&#39;t redefine active sort subroutine %s</dt>
<dd>

<p>(F) Perl optimizes the internal handling of sort subroutines and keeps pointers into them. You tried to redefine one such sort subroutine when it was currently active, which is not allowed. If you really want to do this, you should write <code>sort { &amp;func } @x</code> instead of <code>sort func @x</code>.</p>

</dd>
<dt id="Can&#39;t-use-bareword-(&quot;%s&quot;)-as-%s-ref-while-&quot;strict-refs&quot;-in-use"><a class="permalink" href="perl5004delta.html#Can&#39;t-use-bareword-(%22%25s%22)-as-%25s-ref-while-%22strict-refs%22-in-use">#</a><a id="Can1"></a><a id="Cant-use-bareword-s-as-s-ref-while-strict-refs-in-use"></a>Can&#39;t use bareword (&quot;%s&quot;) as %s ref while &quot;strict refs&quot; in use</dt>
<dd>

<p>(F) Only hard references are allowed by &quot;strict refs&quot;. Symbolic references are disallowed. See <a href="perlref.html">perlref</a>.</p>

</dd>
<dt id="Cannot-resolve-method-`%s&#39;-overloading-`%s&#39;-in-package-`%s&#39;"><a class="permalink" href="perl5004delta.html#Cannot-resolve-method-%60%25s&#39;-overloading-%60%25s&#39;-in-package-%60%25s&#39;">#</a><a id="Cannot"></a><a id="Cannot-resolve-method-s-overloading-s-in-package-s"></a>Cannot resolve method `%s&#39; overloading `%s&#39; in package `%s&#39;</dt>
<dd>

<p>(P) Internal error trying to resolve overloading specified by a method name (as opposed to a subroutine reference).</p>

</dd>
<dt id="Constant-subroutine-%s-redefined"><a class="permalink" href="perl5004delta.html#Constant-subroutine-%25s-redefined">#</a><a id="Constant"></a><a id="Constant-subroutine-s-redefined"></a>Constant subroutine %s redefined</dt>
<dd>

<p>(S) You redefined a subroutine which had previously been eligible for inlining. See <a href="perlsub.html#Constant-Functions">&quot;Constant Functions&quot; in perlsub</a> for commentary and workarounds.</p>

</dd>
<dt id="Constant-subroutine-%s-undefined"><a class="permalink" href="perl5004delta.html#Constant-subroutine-%25s-undefined">#</a><a id="Constant1"></a><a id="Constant-subroutine-s-undefined"></a>Constant subroutine %s undefined</dt>
<dd>

<p>(S) You undefined a subroutine which had previously been eligible for inlining. See <a href="perlsub.html#Constant-Functions">&quot;Constant Functions&quot; in perlsub</a> for commentary and workarounds.</p>

</dd>
<dt id="Copy-method-did-not-return-a-reference"><a class="permalink" href="perl5004delta.html#Copy-method-did-not-return-a-reference">#</a><a id="Copy"></a>Copy method did not return a reference</dt>
<dd>

<p>(F) The method which overloads &quot;=&quot; is buggy. See <a href="overload.html#Copy-Constructor">&quot;Copy Constructor&quot; in overload</a>.</p>

</dd>
<dt id="Died"><a class="permalink" href="perl5004delta.html#Died">#</a>Died</dt>
<dd>

<p>(F) You passed die() an empty string (the equivalent of <code>die &quot;&quot;</code>) or you called it with no args and both <code>$@</code> and <code>$_</code> were empty.</p>

</dd>
<dt id="Exiting-pseudo-block-via-%s"><a class="permalink" href="perl5004delta.html#Exiting-pseudo-block-via-%25s">#</a><a id="Exiting"></a><a id="Exiting-pseudo-block-via-s"></a>Exiting pseudo-block via %s</dt>
<dd>

<p>(W) You are exiting a rather special block construct (like a sort block or subroutine) by unconventional means, such as a goto, or a loop control statement. See <a href="perlfunc.html#sort">&quot;sort&quot; in perlfunc</a>.</p>

</dd>
<dt id="Identifier-too-long"><a class="permalink" href="perl5004delta.html#Identifier-too-long">#</a><a id="Identifier"></a>Identifier too long</dt>
<dd>

<p>(F) Perl limits identifiers (names for variables, functions, etc.) to 252 characters for simple names, somewhat more for compound names (like <code>$A::B</code>). You&#39;ve exceeded Perl&#39;s limits. Future versions of Perl are likely to eliminate these arbitrary limitations.</p>

</dd>
<dt id="Illegal-character-%s-(carriage-return)"><a class="permalink" href="perl5004delta.html#Illegal-character-%25s-(carriage-return)">#</a><a id="Illegal"></a><a id="Illegal-character-s-carriage-return"></a>Illegal character %s (carriage return)</dt>
<dd>

<p>(F) A carriage return character was found in the input. This is an error, and not a warning, because carriage return characters can break multi-line strings, including here documents (e.g., <code>print &lt;&lt;EOF;</code>).</p>

</dd>
<dt id="Illegal-switch-in-PERL5OPT:-%s"><a class="permalink" href="perl5004delta.html#Illegal-switch-in-PERL5OPT:-%25s">#</a><a id="Illegal1"></a><a id="Illegal-switch-in-PERL5OPT:-s"></a>Illegal switch in PERL5OPT: %s</dt>
<dd>

<p>(X) The PERL5OPT environment variable may only be used to set the following switches: <b>-[DIMUdmw]</b>.</p>

</dd>
<dt id="Integer-overflow-in-hex-number"><a class="permalink" href="perl5004delta.html#Integer-overflow-in-hex-number">#</a><a id="Integer"></a>Integer overflow in hex number</dt>
<dd>

<p>(S) The literal hex number you have specified is too big for your architecture. On a 32-bit architecture the largest hex literal is 0xFFFFFFFF.</p>

</dd>
<dt id="Integer-overflow-in-octal-number"><a class="permalink" href="perl5004delta.html#Integer-overflow-in-octal-number">#</a><a id="Integer1"></a>Integer overflow in octal number</dt>
<dd>

<p>(S) The literal octal number you have specified is too big for your architecture. On a 32-bit architecture the largest octal literal is 037777777777.</p>

</dd>
<dt id="internal-error:-glob-failed"><a class="permalink" href="perl5004delta.html#internal-error:-glob-failed">#</a><a id="internal"></a>internal error: glob failed</dt>
<dd>

<p>(P) Something went wrong with the external program(s) used for <code>glob</code> and <code>&lt;*.c&gt;</code>. This may mean that your csh (C shell) is broken. If so, you should change all of the csh-related variables in config.sh: If you have tcsh, make the variables refer to it as if it were csh (e.g. <code>full_csh=&#39;/usr/bin/tcsh&#39;</code>); otherwise, make them all empty (except that <code>d_csh</code> should be <code>&#39;undef&#39;</code>) so that Perl will think csh is missing. In either case, after editing config.sh, run <code>./Configure -S</code> and rebuild Perl.</p>

</dd>
<dt id="Invalid-conversion-in-%s:-&quot;%s&quot;"><a class="permalink" href="perl5004delta.html#Invalid-conversion-in-%25s:-%22%25s%22">#</a><a id="Invalid"></a><a id="Invalid-conversion-in-s:-s"></a>Invalid conversion in %s: &quot;%s&quot;</dt>
<dd>

<p>(W) Perl does not understand the given format conversion. See <a href="perlfunc.html#sprintf">&quot;sprintf&quot; in perlfunc</a>.</p>

</dd>
<dt id="Invalid-type-in-pack:-&#39;%s&#39;"><a class="permalink" href="perl5004delta.html#Invalid-type-in-pack:-&#39;%25s&#39;">#</a><a id="Invalid1"></a><a id="Invalid-type-in-pack:-s"></a>Invalid type in pack: &#39;%s&#39;</dt>
<dd>

<p>(F) The given character is not a valid pack type. See <a href="perlfunc.html#pack">&quot;pack&quot; in perlfunc</a>.</p>

</dd>
<dt id="Invalid-type-in-unpack:-&#39;%s&#39;"><a class="permalink" href="perl5004delta.html#Invalid-type-in-unpack:-&#39;%25s&#39;">#</a><a id="Invalid2"></a><a id="Invalid-type-in-unpack:-s"></a>Invalid type in unpack: &#39;%s&#39;</dt>
<dd>

<p>(F) The given character is not a valid unpack type. See <a href="perlfunc.html#unpack">&quot;unpack&quot; in perlfunc</a>.</p>

</dd>
<dt id="Name-&quot;%s::%s&quot;-used-only-once:-possible-typo"><a class="permalink" href="perl5004delta.html#Name-%22%25s::%25s%22-used-only-once:-possible-typo">#</a><a id="Name"></a><a id="Name-s::-s-used-only-once:-possible-typo"></a>Name &quot;%s::%s&quot; used only once: possible typo</dt>
<dd>

<p>(W) Typographical errors often show up as unique variable names. If you had a good reason for having a unique name, then just mention it again somehow to suppress the message (the <code>use vars</code> pragma is provided for just this purpose).</p>

</dd>
<dt id="Null-picture-in-formline"><a class="permalink" href="perl5004delta.html#Null-picture-in-formline">#</a><a id="Null"></a>Null picture in formline</dt>
<dd>

<p>(F) The first argument to formline must be a valid format picture specification. It was found to be empty, which probably means you supplied it an uninitialized value. See <a href="perlform.html">perlform</a>.</p>

</dd>
<dt id="Offset-outside-string"><a class="permalink" href="perl5004delta.html#Offset-outside-string">#</a><a id="Offset"></a>Offset outside string</dt>
<dd>

<p>(F) You tried to do a read/write/send/recv operation with an offset pointing outside the buffer. This is difficult to imagine. The sole exception to this is that <code>sysread()</code>ing past the buffer will extend the buffer and zero pad the new area.</p>

</dd>
<dt id="Out-of-memory!"><a class="permalink" href="perl5004delta.html#Out-of-memory!">#</a><a id="Out"></a><a id="Out-of-memory"></a>Out of memory!</dt>
<dd>

<p>(X|F) The malloc() function returned 0, indicating there was insufficient remaining memory (or virtual memory) to satisfy the request.</p>

<p>The request was judged to be small, so the possibility to trap it depends on the way Perl was compiled. By default it is not trappable. However, if compiled for this, Perl may use the contents of <code>$^M</code> as an emergency pool after die()ing with this message. In this case the error is trappable <i>once</i>.</p>

</dd>
<dt id="Out-of-memory-during-request-for-%s"><a class="permalink" href="perl5004delta.html#Out-of-memory-during-request-for-%25s">#</a><a id="Out1"></a><a id="Out-of-memory-during-request-for-s"></a>Out of memory during request for %s</dt>
<dd>

<p>(F) The malloc() function returned 0, indicating there was insufficient remaining memory (or virtual memory) to satisfy the request. However, the request was judged large enough (compile-time default is 64K), so a possibility to shut down by trapping this error is granted.</p>

</dd>
<dt id="panic:-frexp"><a class="permalink" href="perl5004delta.html#panic:-frexp">#</a><a id="panic"></a>panic: frexp</dt>
<dd>

<p>(P) The library function frexp() failed, making printf(&quot;%f&quot;) impossible.</p>

</dd>
<dt id="Possible-attempt-to-put-comments-in-qw()-list"><a class="permalink" href="perl5004delta.html#Possible-attempt-to-put-comments-in-qw()-list">#</a><a id="Possible"></a><a id="Possible-attempt-to-put-comments-in-qw-list"></a>Possible attempt to put comments in qw() list</dt>
<dd>

<p>(W) qw() lists contain items separated by whitespace; as with literal strings, comment characters are not ignored, but are instead treated as literal data. (You may have used different delimiters than the parentheses shown here; braces are also frequently used.)</p>

<p>You probably wrote something like this:</p>

<pre><code>@list = qw(
    a # a comment
    b # another comment
);</code></pre>

<p>when you should have written this:</p>

<pre><code>@list = qw(
    a
    b
);</code></pre>

<p>If you really want comments, build your list the old-fashioned way, with quotes and commas:</p>

<pre><code>@list = (
    &#39;a&#39;,    # a comment
    &#39;b&#39;,    # another comment
);</code></pre>

</dd>
<dt id="Possible-attempt-to-separate-words-with-commas"><a class="permalink" href="perl5004delta.html#Possible-attempt-to-separate-words-with-commas">#</a><a id="Possible1"></a>Possible attempt to separate words with commas</dt>
<dd>

<p>(W) qw() lists contain items separated by whitespace; therefore commas aren&#39;t needed to separate the items. (You may have used different delimiters than the parentheses shown here; braces are also frequently used.)</p>

<p>You probably wrote something like this:</p>

<pre><code>qw! a, b, c !;</code></pre>

<p>which puts literal commas into some of the list items. Write it without commas if you don&#39;t want them to appear in your data:</p>

<pre><code>qw! a b c !;</code></pre>

</dd>
<dt id="Scalar-value-@%s{%s}-better-written-as-$%s{%s}"><a class="permalink" href="perl5004delta.html#Scalar-value-@%25s%7B%25s%7D-better-written-as-$%25s%7B%25s%7D">#</a><a id="Scalar"></a><a id="Scalar-value-s-s-better-written-as-s-s"></a>Scalar value @%s{%s} better written as $%s{%s}</dt>
<dd>

<p>(W) You&#39;ve used a hash slice (indicated by @) to select a single element of a hash. Generally it&#39;s better to ask for a scalar value (indicated by $). The difference is that <code>$foo{&amp;bar}</code> always behaves like a scalar, both when assigning to it and when evaluating its argument, while <code>@foo{&amp;bar}</code> behaves like a list when you assign to it, and provides a list context to its subscript, which can do weird things if you&#39;re expecting only one subscript.</p>

</dd>
<dt id="Stub-found-while-resolving-method-`%s&#39;-overloading-`%s&#39;-in-%s"><a class="permalink" href="perl5004delta.html#Stub-found-while-resolving-method-%60%25s&#39;-overloading-%60%25s&#39;-in-%25s">#</a><a id="Stub"></a><a id="Stub-found-while-resolving-method-s-overloading-s-in-s"></a>Stub found while resolving method `%s&#39; overloading `%s&#39; in %s</dt>
<dd>

<p>(P) Overloading resolution over @ISA tree may be broken by importing stubs. Stubs should never be implicitly created, but explicit calls to <code>can</code> may break this.</p>

</dd>
<dt id="Too-late-for-&quot;-T&quot;-option"><a class="permalink" href="perl5004delta.html#Too-late-for-%22-T%22-option">#</a><a id="Too"></a><a id="Too-late-for--T-option"></a>Too late for &quot;<b>-T</b>&quot; option</dt>
<dd>

<p>(X) The #! line (or local equivalent) in a Perl script contains the <b>-T</b> option, but Perl was not invoked with <b>-T</b> in its argument list. This is an error because, by the time Perl discovers a <b>-T</b> in a script, it&#39;s too late to properly taint everything from the environment. So Perl gives up.</p>

</dd>
<dt id="untie-attempted-while-%d-inner-references-still-exist"><a class="permalink" href="perl5004delta.html#untie-attempted-while-%25d-inner-references-still-exist">#</a><a id="untie"></a><a id="untie-attempted-while-d-inner-references-still-exist"></a>untie attempted while %d inner references still exist</dt>
<dd>

<p>(W) A copy of the object returned from <code>tie</code> (or <code>tied</code>) was still valid when <code>untie</code> was called.</p>

</dd>
<dt id="Unrecognized-character-%s"><a class="permalink" href="perl5004delta.html#Unrecognized-character-%25s">#</a><a id="Unrecognized"></a><a id="Unrecognized-character-s"></a>Unrecognized character %s</dt>
<dd>

<p>(F) The Perl parser has no idea what to do with the specified character in your Perl script (or eval). Perhaps you tried to run a compressed script, a binary program, or a directory as a Perl program.</p>

</dd>
<dt id="Unsupported-function-fork"><a class="permalink" href="perl5004delta.html#Unsupported-function-fork">#</a><a id="Unsupported"></a>Unsupported function fork</dt>
<dd>

<p>(F) Your version of executable does not support forking.</p>

<p>Note that under some systems, like OS/2, there may be different flavors of Perl executables, some of which may support fork, some not. Try changing the name you call Perl by to <code>perl_</code>, <code>perl__</code>, and so on.</p>

</dd>
<dt id="Use-of-&quot;$$&quot;-to-mean-&quot;${$}&quot;-is-deprecated"><a class="permalink" href="perl5004delta.html#Use-of-%22$$%22-to-mean-%22$%7B$%7D%22-is-deprecated">#</a><a id="Use-of-&quot;$$&lt;digit&gt;&quot;-to-mean-&quot;${$}&lt;digit&gt;&quot;-is-deprecated"></a><a id="Use"></a><a id="Use-of-digit-to-mean-digit-is-deprecated"></a>Use of &quot;$$&lt;digit&gt;&quot; to mean &quot;${$}&lt;digit&gt;&quot; is deprecated</dt>
<dd>

<p>(D) Perl versions before 5.004 misinterpreted any type marker followed by &quot;$&quot; and a digit. For example, &quot;$$0&quot; was incorrectly taken to mean &quot;${$}0&quot; instead of &quot;${$0}&quot;. This bug is (mostly) fixed in Perl 5.004.</p>

<p>However, the developers of Perl 5.004 could not fix this bug completely, because at least two widely-used modules depend on the old meaning of &quot;$$0&quot; in a string. So Perl 5.004 still interprets &quot;$$&lt;digit&gt;&quot; in the old (broken) way inside strings; but it generates this message as a warning. And in Perl 5.005, this special treatment will cease.</p>

</dd>
<dt id="Value-of-%s-can-be-&quot;0&quot;;-test-with-defined()"><a class="permalink" href="perl5004delta.html#Value-of-%25s-can-be-%220%22;-test-with-defined()">#</a><a id="Value"></a><a id="Value-of-s-can-be-0-test-with-defined"></a>Value of %s can be &quot;0&quot;; test with defined()</dt>
<dd>

<p>(W) In a conditional expression, you used &lt;HANDLE&gt;, &lt;*&gt; (glob), <code>each()</code>, or <code>readdir()</code> as a boolean value. Each of these constructs can return a value of &quot;0&quot;; that would make the conditional expression false, which is probably not what you intended. When using these constructs in conditional expressions, test their values with the <code>defined</code> operator.</p>

</dd>
<dt id="Variable-&quot;%s&quot;-may-be-unavailable"><a class="permalink" href="perl5004delta.html#Variable-%22%25s%22-may-be-unavailable">#</a><a id="Variable"></a><a id="Variable-s-may-be-unavailable"></a>Variable &quot;%s&quot; may be unavailable</dt>
<dd>

<p>(W) An inner (nested) <i>anonymous</i> subroutine is inside a <i>named</i> subroutine, and outside that is another subroutine; and the anonymous (innermost) subroutine is referencing a lexical variable defined in the outermost subroutine. For example:</p>

<pre><code>sub outermost { my $a; sub middle { sub { $a } } }</code></pre>

<p>If the anonymous subroutine is called or referenced (directly or indirectly) from the outermost subroutine, it will share the variable as you would expect. But if the anonymous subroutine is called or referenced when the outermost subroutine is not active, it will see the value of the shared variable as it was before and during the *first* call to the outermost subroutine, which is probably not what you want.</p>

<p>In these circumstances, it is usually best to make the middle subroutine anonymous, using the <code>sub {}</code> syntax. Perl has specific support for shared variables in nested anonymous subroutines; a named subroutine in between interferes with this feature.</p>

</dd>
<dt id="Variable-&quot;%s&quot;-will-not-stay-shared"><a class="permalink" href="perl5004delta.html#Variable-%22%25s%22-will-not-stay-shared">#</a><a id="Variable1"></a><a id="Variable-s-will-not-stay-shared"></a>Variable &quot;%s&quot; will not stay shared</dt>
<dd>

<p>(W) An inner (nested) <i>named</i> subroutine is referencing a lexical variable defined in an outer subroutine.</p>

<p>When the inner subroutine is called, it will probably see the value of the outer subroutine&#39;s variable as it was before and during the *first* call to the outer subroutine; in this case, after the first call to the outer subroutine is complete, the inner and outer subroutines will no longer share a common value for the variable. In other words, the variable will no longer be shared.</p>

<p>Furthermore, if the outer subroutine is anonymous and references a lexical variable outside itself, then the outer and inner subroutines will <i>never</i> share the given variable.</p>

<p>This problem can usually be solved by making the inner subroutine anonymous, using the <code>sub {}</code> syntax. When inner anonymous subs that reference variables in outer subroutines are called or referenced, they are automatically rebound to the current values of such variables.</p>

</dd>
<dt id="Warning:-something&#39;s-wrong"><a class="permalink" href="perl5004delta.html#Warning:-something&#39;s-wrong">#</a><a id="Warning"></a><a id="Warning:-somethings-wrong"></a>Warning: something&#39;s wrong</dt>
<dd>

<p>(W) You passed warn() an empty string (the equivalent of <code>warn &quot;&quot;</code>) or you called it with no args and <code>$_</code> was empty.</p>

</dd>
<dt id="Ill-formed-logical-name-|%s|-in-prime_env_iter"><a class="permalink" href="perl5004delta.html#Ill-formed-logical-name-%7C%25s%7C-in-prime_env_iter">#</a><a id="Ill"></a><a id="Ill-formed-logical-name-s-in-prime_env_iter"></a>Ill-formed logical name |%s| in prime_env_iter</dt>
<dd>

<p>(W) A warning peculiar to VMS. A logical name was encountered when preparing to iterate over %ENV which violates the syntactic rules governing logical names. Since it cannot be translated normally, it is skipped, and will not appear in %ENV. This may be a benign occurrence, as some software packages might directly modify logical name tables and introduce nonstandard names, or it may indicate that a logical name table has been corrupted.</p>

</dd>
<dt id="Got-an-error-from-DosAllocMem"><a class="permalink" href="perl5004delta.html#Got-an-error-from-DosAllocMem">#</a><a id="Got"></a>Got an error from DosAllocMem</dt>
<dd>

<p>(P) An error peculiar to OS/2. Most probably you&#39;re using an obsolete version of Perl, and this should not happen anyway.</p>

</dd>
<dt id="Malformed-PERLLIB_PREFIX"><a class="permalink" href="perl5004delta.html#Malformed-PERLLIB_PREFIX">#</a><a id="Malformed"></a>Malformed PERLLIB_PREFIX</dt>
<dd>

<p>(F) An error peculiar to OS/2. PERLLIB_PREFIX should be of the form</p>

<pre><code class="plaintext">prefix1;prefix2</code></pre>

<p>or</p>

<pre><code class="plaintext">prefix1 prefix2</code></pre>

<p>with nonempty prefix1 and prefix2. If <code>prefix1</code> is indeed a prefix of a builtin library search path, prefix2 is substituted. The error may appear if components are not found, or are too long. See &quot;PERLLIB_PREFIX&quot; in <i>README.os2</i>.</p>

</dd>
<dt id="PERL_SH_DIR-too-long"><a class="permalink" href="perl5004delta.html#PERL_SH_DIR-too-long">#</a><a id="PERL_SH_DIR"></a>PERL_SH_DIR too long</dt>
<dd>

<p>(F) An error peculiar to OS/2. PERL_SH_DIR is the directory to find the <code>sh</code>-shell in. See &quot;PERL_SH_DIR&quot; in <i>README.os2</i>.</p>

</dd>
<dt id="Process-terminated-by-SIG%s"><a class="permalink" href="perl5004delta.html#Process-terminated-by-SIG%25s">#</a><a id="Process"></a><a id="Process-terminated-by-SIG-s"></a>Process terminated by SIG%s</dt>
<dd>

<p>(W) This is a standard message issued by OS/2 applications, while *nix applications die in silence. It is considered a feature of the OS/2 port. One can easily disable this by appropriate sighandlers, see <a href="perlipc.html#Signals">&quot;Signals&quot; in perlipc</a>. See also &quot;Process terminated by SIGTERM/SIGINT&quot; in <i>README.os2</i>.</p>

</dd>
</dl>

<h1 id="BUGS"><a class="permalink" href="perl5004delta.html#BUGS">#</a>BUGS</h1>

<p>If you find what you think is a bug, you might check the headers of recently posted articles in the comp.lang.perl.misc newsgroup. There may also be information at http://www.perl.com/perl/ , the Perl Home Page.</p>

<p>If you believe you have an unreported bug, please run the <b>perlbug</b> program included with your release. Make sure you trim your bug down to a tiny but sufficient test case. Your bug report, along with the output of <code>perl -V</code>, will be sent off to &lt;<i>perlbug@perl.com</i>&gt; to be analysed by the Perl porting team.</p>

<h1 id="SEE-ALSO"><a class="permalink" href="perl5004delta.html#SEE-ALSO">#</a><a id="SEE"></a>SEE ALSO</h1>

<p>The <i>Changes</i> file for exhaustive details on what changed.</p>

<p>The <i>INSTALL</i> file for how to build Perl. This file has been significantly updated for 5.004, so even veteran users should look through it.</p>

<p>The <i>README</i> file for general stuff.</p>

<p>The <i>Copying</i> file for copyright information.</p>

<h1 id="HISTORY"><a class="permalink" href="perl5004delta.html#HISTORY">#</a>HISTORY</h1>

<p>Constructed by Tom Christiansen, grabbing material with permission from innumerable contributors, with kibitzing by more than a few Perl porters.</p>

<p>Last update: Wed May 14 11:14:09 EDT 1997</p>


      </div>
      <div id="footer">
        <p>Perldoc Browser is maintained by Dan Book (<a href="https://metacpan.org/author/DBOOK">DBOOK</a>). Please contact him via the <a href="https://github.com/Grinnz/perldoc-browser/issues">GitHub issue tracker</a> or <a href="mailto:dbook@cpan.org">email</a> regarding any issues with the site itself, search, or rendering of documentation.</p>

<p>The Perl documentation is maintained by the Perl 5 Porters in the development of Perl. Please contact them via the <a href="https://github.com/Perl/perl5/issues">Perl issue tracker</a>, the <a href="https://lists.perl.org/list/perl5-porters.html">mailing list</a>, or <a href="https://kiwiirc.com/client/irc.perl.org/p5p">IRC</a> to report any issues with the contents or format of the documentation.</p>


      </div>
    </div>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.slim.min.js" integrity="sha512-/DXTXr6nQodMUiq+IUJYCt2PPOUjrHJ9wFrqpJ3XkgPNOZVfMok7cRw6CSxyCQxXn6ozlESsSh1/sMCTF1rL/g==" crossorigin="anonymous"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.1/umd/popper.min.js" integrity="sha512-ubuT8Z88WxezgSqf3RLuNi5lmjstiJcyezx34yIU2gAHonIi27Na7atqzUZCOoY4CExaoFumzOsFQ2Ch+I/HCw==" crossorigin="anonymous"></script>
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js" integrity="sha384-B4gt1jrGC7Jh4AgTPSdUtOBvfO8shuf57BaghqFfPlYxofvL8/KUEfYiJOMMV+rV" crossorigin="anonymous"></script>
    <script src="../highlight.pack.js"></script>
    <script>hljs.highlightAll();</script>
  </body>
</html>
